From 50aec2b38c7c3de286cbafcf8eb0d0659dcbe23c Mon Sep 17 00:00:00 2001 From: wizardforcel <562826179@qq.com> Date: Tue, 26 Mar 2019 23:05:30 +0800 Subject: [PATCH] done --- .gitignore | 115 +++++++++++++++++++ README.md | 24 ++++ SUMMARY.md | 53 +++++++++ docs/8.md | 1 + styles/ebook.css | 284 +++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 477 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 SUMMARY.md create mode 100644 docs/8.md create mode 100644 styles/ebook.css diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a387c72 --- /dev/null +++ b/.gitignore @@ -0,0 +1,115 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# dotenv +.env + +# virtualenv +.venv +venv/ +ENV/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.DS_Store + +# gitbook +_book + +# node.js +node_modules + +# windows +Thumbs.db + +# word +~$*.docx +~$*.doc diff --git a/README.md b/README.md new file mode 100644 index 0000000..9f35544 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# 数据科学和人工智能技术笔记 + +> 原文:[donnemartin/data-science-ipython-notebooks](https://github.com/donnemartin/data-science-ipython-notebooks) +> +> 译者:[飞龙](https://github.com/wizardforcel) +> +> 协议:[CC BY-NC-SA 4.0](http://creativecommons.org/licenses/by-nc-sa/4.0/) +> +> 欢迎任何人参与和完善:一个人可以走的很快,但是一群人却可以走的更远。 + ++ [ApacheCN 机器学习交流群 629470233](http://shang.qq.com/wpa/qunwpa?idkey=30e5f1123a79867570f665aa3a483ca404b1c3f77737bc01ec520ed5f078ddef) ++ [ApacheCN 学习资源](http://www.apachecn.org/) + + + ++ [在线阅读](https://www.gitbook.com/book/wizardforcel/ds-ipynb/details) ++ [PDF格式](https://www.gitbook.com/download/pdf/book/wizardforcel/ds-ipynb) ++ [EPUB格式](https://www.gitbook.com/download/epub/book/wizardforcel/ds-ipynb) ++ [MOBI格式](https://www.gitbook.com/download/mobi/book/wizardforcel/ds-ipynb) ++ [代码仓库](https://github.com/apachecn/ds-ipynb-zh) + +## 赞助我 + +![](http://ww1.sinaimg.cn/large/841aea59ly1fx0qnvulnjj2074074747.jpg) \ No newline at end of file diff --git a/SUMMARY.md b/SUMMARY.md new file mode 100644 index 0000000..cf51807 --- /dev/null +++ b/SUMMARY.md @@ -0,0 +1,53 @@ ++ [数据科学 IPython 笔记本](README.md) ++ [一、TensorFlow](1.md) ++ [二、TensorFlow 练习](2.md) ++ [三、Theano](3.md) ++ [四、Keras](4.md) ++ [五、scikit-learn](5.md) ++ [六、SciPy 统计推断](6.md) ++ [七、Pandas](7.md) + + [7.1 Pandas](7.1.md) + + [7.2 数据整理](7.2.md) + + [7.3 Pandas 数据操作](7.3.md) + + [7.4 Pandas 对象介绍](7.4.md) + + [7.5 数据索引和选择](7.5.md) + + [7.6 Pandas 中的数据操作](7.6.md) + + [7.7 处理缺失数据](7.7.md) + + [7.8 分层索引](7.8.md) + + [7.9 组合数据集:连接和附加](7.9.md) + + [7.10 组合数据集:合并和连接](7.10.md) + + [7.11 聚合和分组](7.11.md) + + [7.12 透视表](7.12.md) + + [7.13 向量化字符串操作](7.13.md) + + [7.14 处理时间序列](7.14.md) + + [7.15 高性能 Pandas:`eval()`和`query()`](7.15.md) ++ [八、Matplotlib](8.md) + + [8.1 matplotlib](8.1.md) + + [8.2 Matplotlib 的应用](8.2.md) + + [8.3 Matplotlib 可视化](8.3.md) + + [8.4 简单的折线图](8.4.md) + + [8.5 简单的散点图](8.5.md) + + [8.6 可视化误差](8.6.md) + + [8.7 密度和等高线图](8.7.md) + + [8.8 直方图,分箱和密度](8.8.md) + + [8.9 自定义图例](8.9.md) + + [8.10 自定义颜色条](8.10.md) + + [8.11 多个子图](8.11.md) + + [8.12 文本和注解](8.12.md) + + [8.13 自定义刻度](8.13.md) + + [8.14 自定义 Matplotlib:配置和样式表](8.14.md) + + [8.15 Matplotlib 中的三维绘图](8.15.md) + + [8.16 地理数据和 Basemap](8.16.md) + + [8.17 使用 Seaborn 的可视化](8.17.md) ++ [九、NumPy](9.md) + + [9.1 NumPy](9.1.md) + + [9.2 NumPy 简介](9.2.md) + + [9.3 理解 Python 中的数据类型](9.3.md) + + [9.4 NumPy 数组的基础](9.4.md) + + [9.5 NumPy 数组上的计算:通用函数](9.5.md) + + [9.6 聚合:最小、最大和之间的任何东西](9.6.md) + + [9.7 数组上的计算:广播](9.7.md) + + [9.8 比较,掩码和布尔逻辑](9.8.md) + + [9.9 花式索引](9.9.md) + + [9.10 数组排序](9.10.md) + + [9.11 结构化数据:NumPy 的结构化数组](9.11.md) diff --git a/docs/8.md b/docs/8.md new file mode 100644 index 0000000..e6ac416 --- /dev/null +++ b/docs/8.md @@ -0,0 +1 @@ +# 八、Matplotlib \ No newline at end of file diff --git a/styles/ebook.css b/styles/ebook.css new file mode 100644 index 0000000..1791fd4 --- /dev/null +++ b/styles/ebook.css @@ -0,0 +1,284 @@ +/* GitHub stylesheet for MarkdownPad (http://markdownpad.com) */ +/* Author: Nicolas Hery - http://nicolashery.com */ +/* Version: b13fe65ca28d2e568c6ed5d7f06581183df8f2ff */ +/* Source: https://github.com/nicolahery/markdownpad-github */ + +/* RESET +=============================================================================*/ + +html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; +} + +/* BODY +=============================================================================*/ + +body { + font-family: Helvetica, arial, freesans, clean, sans-serif; + font-size: 14px; + line-height: 1.6; + color: #333; + background-color: #fff; + padding: 20px; + max-width: 960px; + margin: 0 auto; +} + +body>*:first-child { + margin-top: 0 !important; +} + +body>*:last-child { + margin-bottom: 0 !important; +} + +/* BLOCKS +=============================================================================*/ + +p, blockquote, ul, ol, dl, table, pre { + margin: 15px 0; +} + +/* HEADERS +=============================================================================*/ + +h1, h2, h3, h4, h5, h6 { + margin: 20px 0 10px; + padding: 0; + font-weight: bold; + -webkit-font-smoothing: antialiased; +} + +h1 tt, h1 code, h2 tt, h2 code, h3 tt, h3 code, h4 tt, h4 code, h5 tt, h5 code, h6 tt, h6 code { + font-size: inherit; +} + +h1 { + font-size: 24px; + border-bottom: 1px solid #ccc; + color: #000; +} + +h2 { + font-size: 18px; + color: #000; +} + +h3 { + font-size: 14px; +} + +h4 { + font-size: 14px; +} + +h5 { + font-size: 14px; +} + +h6 { + color: #777; + font-size: 14px; +} + +body>h2:first-child, body>h1:first-child, body>h1:first-child+h2, body>h3:first-child, body>h4:first-child, body>h5:first-child, body>h6:first-child { + margin-top: 0; + padding-top: 0; +} + +a:first-child h1, a:first-child h2, a:first-child h3, a:first-child h4, a:first-child h5, a:first-child h6 { + margin-top: 0; + padding-top: 0; +} + +h1+p, h2+p, h3+p, h4+p, h5+p, h6+p { + margin-top: 10px; +} + +/* LINKS +=============================================================================*/ + +a { + color: #4183C4; + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +/* LISTS +=============================================================================*/ + +ul, ol { + padding-left: 30px; +} + +ul li > :first-child, +ol li > :first-child, +ul li ul:first-of-type, +ol li ol:first-of-type, +ul li ol:first-of-type, +ol li ul:first-of-type { + margin-top: 0px; +} + +ul ul, ul ol, ol ol, ol ul { + margin-bottom: 0; +} + +dl { + padding: 0; +} + +dl dt { + font-size: 14px; + font-weight: bold; + font-style: italic; + padding: 0; + margin: 15px 0 5px; +} + +dl dt:first-child { + padding: 0; +} + +dl dt>:first-child { + margin-top: 0px; +} + +dl dt>:last-child { + margin-bottom: 0px; +} + +dl dd { + margin: 0 0 15px; + padding: 0 15px; +} + +dl dd>:first-child { + margin-top: 0px; +} + +dl dd>:last-child { + margin-bottom: 0px; +} + +/* CODE +=============================================================================*/ + +pre, code, tt { + font-size: 12px; + font-family: Consolas, "Liberation Mono", Courier, monospace; +} + +code, tt { + margin: 0 0px; + padding: 0px 0px; + white-space: nowrap; + border: 1px solid #eaeaea; + background-color: #f8f8f8; + border-radius: 3px; +} + +pre>code { + margin: 0; + padding: 0; + white-space: pre; + border: none; + background: transparent; +} + +pre { + background-color: #f8f8f8; + border: 1px solid #ccc; + font-size: 13px; + line-height: 19px; + overflow: auto; + padding: 6px 10px; + border-radius: 3px; +} + +pre code, pre tt { + background-color: transparent; + border: none; +} + +kbd { + -moz-border-bottom-colors: none; + -moz-border-left-colors: none; + -moz-border-right-colors: none; + -moz-border-top-colors: none; + background-color: #DDDDDD; + background-image: linear-gradient(#F1F1F1, #DDDDDD); + background-repeat: repeat-x; + border-color: #DDDDDD #CCCCCC #CCCCCC #DDDDDD; + border-image: none; + border-radius: 2px 2px 2px 2px; + border-style: solid; + border-width: 1px; + font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; + line-height: 10px; + padding: 1px 4px; +} + +/* QUOTES +=============================================================================*/ + +blockquote { + border-left: 4px solid #DDD; + padding: 0 15px; + color: #777; +} + +blockquote>:first-child { + margin-top: 0px; +} + +blockquote>:last-child { + margin-bottom: 0px; +} + +/* HORIZONTAL RULES +=============================================================================*/ + +hr { + clear: both; + margin: 15px 0; + height: 0px; + overflow: hidden; + border: none; + background: transparent; + border-bottom: 4px solid #ddd; + padding: 0; +} + +/* TABLES +=============================================================================*/ + +table th { + font-weight: bold; +} + +table th, table td { + border: 1px solid #ccc; + padding: 6px 13px; +} + +table tr { + border-top: 1px solid #ccc; + background-color: #fff; +} + +table tr:nth-child(2n) { + background-color: #f8f8f8; +} + +/* IMAGES +=============================================================================*/ + +img { + max-width: 100% +} \ No newline at end of file -- GitLab