Skip to content

Commit

Permalink
update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
luweizheng committed Sep 27, 2023
1 parent 15a1772 commit 87943d8
Show file tree
Hide file tree
Showing 9 changed files with 288 additions and 25 deletions.
6 changes: 3 additions & 3 deletions contribute/info.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 构建指南

本书基于名为 [Jupyter Book](https://jupyterbook.org/) 的 Python 工具构建,并部署在 GitHub Pages 上。本书主要内容使用 `.ipynb``.md` 文件保存。Jupyter Book 工具可以将 `.ipynb``.md` 文件转化为 HTML 格式。可以通过以下方式构建 HTML。
本书基于名为 [Jupyter Book](https://jupyterbook.org/) 的 Python 工具构建,并部署在 GitHub Pages 上。本书主要内容使用 `.ipynb``.md` 文件保存。Jupyter Book 工具可以将 `.ipynb``.md` 文件转化为 HTML 格式。

## 文字与代码风格指南

Expand All @@ -10,7 +10,7 @@

参考 [Git 教程](https://git-scm.com/book/zh/v2/GitHub-对项目做出贡献) 创建 Fork,并将代码仓库克隆到本地。

```git
```bash
git clone https://github.com/py-101/python-data-science.git
```

Expand All @@ -20,7 +20,7 @@ git clone https://github.com/py-101/python-data-science.git

* 选择一个包管理工具,比如 `conda` 或者 `venv`
* 安装 Python >= 3.8
* 安装 requirements.txt 中的各个依赖。包括本书各个案例所需要的工具 pandas 等,以及本电子书构建工具 Jupyter Book:
* 安装 requirements.txt 和 requirements-dev.txt 中的各个依赖。包括本书各个案例所需要的工具 pandas 等,以及本电子书构建工具 Jupyter Book:

```bash
pip install -r requirements.txt
Expand Down
Binary file added docs/_images/alipay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/wechat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
96 changes: 95 additions & 1 deletion docs/_sources/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,98 @@
# Python 数据科学实战

```{tableofcontents}
::::{grid} 2
:reverse:

:::{grid-item}
:columns: 4
:class: sd-m-auto


:::

:::{grid-item}
:columns: 8
:class: sd-fs-3
开源的、面向人文社科的、案例驱动的 Python 数据科学书籍。

% The SVG rendering breaks latex builds for the GitHub badge, so only include in HTML
```{only} html
[![](https://img.shields.io/github/stars/py-101/python-data-science?style=for-the-badge)](https://github.com/py-101/python-data-science)
```

:::

::::

::::{card-carousel} 3

:::{card}
:margin: 3
:class-body: text-center
:class-header: bg-light text-center
**数据处理与计算 ✏️**
^^^

使用NumPy 和 pandas 进行数学计算、数据预处理。使用 matplotlib 和 plotly 进行数据可视化。
:::

:::{card}
:margin: 3
:class-body: text-center
:class-header: bg-light text-center
**机器学习 🚀**
^^^

使用 PyTorch、scikit-learn 和 statsmodels 进行机器学习。
:::

::::

## 主要作者

::::{grid}
:class-container: text-center
:gutter: 3

:::{grid-item-card}
:link-type: doc
:class-header: bg-light

鲁蔚征
^^^

中国人民大学助理研究员,CCF高性能计算专业委员会执行委员,主要研究大数据与机器学习系统,《Flink原理与实践》作者。
:::

::::

## 赞赏与支持

如果您觉得本书有价值,您可通过支付宝或微信赞赏。

::::{card-carousel} 2

:::{card}
:margin: 3
:class-body: text-center
:class-header: bg-light text-center
**支付宝**
^^^
```{image} ./img/donate/alipay.png
:height: 100
```
:::

:::{card}
:margin: 3
:class-body: text-center
:class-header: bg-light text-center

**微信**
^^^
```{image} ./img/donate/wechat.png
:height: 100
```
:::

::::
113 changes: 94 additions & 19 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@
</button>
`);
</script>

<label class="sidebar-toggle secondary-toggle btn btn-sm" for="__secondary"title="Toggle secondary sidebar" data-bs-placement="bottom" data-bs-toggle="tooltip">
<span class="fa-solid fa-list"></span>
</label>
</div></div>

</div>
Expand All @@ -367,6 +369,15 @@ <h1>Python 数据科学实战</h1>
<div id="print-main-content">
<div id="jb-print-toc">

<div>
<h2> Contents </h2>
</div>
<nav aria-label="Page">
<ul class="visible nav section-nav flex-column">
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#id1">主要作者</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#id2">赞赏与支持</a></li>
</ul>
</nav>
</div>
</div>
</div>
Expand All @@ -378,25 +389,74 @@ <h1>Python 数据科学实战</h1>

<div class="tex2jax_ignore mathjax_ignore section" id="python">
<h1>Python 数据科学实战<a class="headerlink" href="#python" title="Permalink to this heading">#</a></h1>
<div class="sd-container-fluid sd-sphinx-override sd-mb-4 docutils">
<div class="sd-row sd-row-cols-2 sd-row-cols-xs-2 sd-row-cols-sm-2 sd-row-cols-md-2 sd-row-cols-lg-2 sd-flex-row-reverse docutils">
<div class="sd-col sd-d-flex-column sd-col-4 sd-col-xs-4 sd-col-sm-4 sd-col-md-4 sd-col-lg-4 sd-m-auto docutils">
</div>
<div class="sd-col sd-d-flex-column sd-col-8 sd-col-xs-8 sd-col-sm-8 sd-col-md-8 sd-col-lg-8 sd-fs-3 docutils">
<p>开源的、面向人文社科的、案例驱动的 Python 数据科学书籍。</p>
<p><a class="reference external" href="https://github.com/py-101/python-data-science"><img alt="" src="https://img.shields.io/github/stars/py-101/python-data-science?style=for-the-badge" /></a></p>
</div>
</div>
</div>
<div class="sd-sphinx-override sd-cards-carousel sd-card-cols-3 docutils">
<div class="sd-card sd-sphinx-override sd-m-3 sd-shadow-sm docutils">
<div class="sd-card-header bg-light text-center docutils">
<p class="sd-card-text"><strong>数据处理与计算 ✏️</strong></p>
</div>
<div class="sd-card-body text-center docutils">
<p class="sd-card-text">使用NumPy 和 pandas 进行数学计算、数据预处理。使用 matplotlib 和 plotly 进行数据可视化。</p>
</div>
</div>
<div class="sd-card sd-sphinx-override sd-m-3 sd-shadow-sm docutils">
<div class="sd-card-header bg-light text-center docutils">
<p class="sd-card-text"><strong>机器学习 🚀</strong></p>
</div>
<div class="sd-card-body text-center docutils">
<p class="sd-card-text">使用 PyTorch、scikit-learn 和 statsmodels 进行机器学习。</p>
</div>
</div>
</div>
<div class="section" id="id1">
<h2>主要作者<a class="headerlink" href="#id1" title="Permalink to this heading">#</a></h2>
<div class="sd-container-fluid sd-sphinx-override sd-mb-4 text-center docutils">
<div class="sd-row sd-g-3 sd-g-xs-3 sd-g-sm-3 sd-g-md-3 sd-g-lg-3 docutils">
<div class="sd-col sd-d-flex-row docutils">
<div class="sd-card sd-sphinx-override sd-w-100 sd-shadow-sm docutils">
<div class="sd-card-header bg-light docutils">
<p class="sd-card-text">鲁蔚征</p>
</div>
<div class="sd-card-body docutils">
<p class="sd-card-text">中国人民大学助理研究员,CCF高性能计算专业委员会执行委员,主要研究大数据与机器学习系统,《Flink原理与实践》作者。</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="section" id="id2">
<h2>赞赏与支持<a class="headerlink" href="#id2" title="Permalink to this heading">#</a></h2>
<p>如果您觉得本书有价值,您可通过支付宝或微信赞赏。</p>
<div class="sd-sphinx-override sd-cards-carousel sd-card-cols-2 docutils">
<div class="sd-card sd-sphinx-override sd-m-3 sd-shadow-sm docutils">
<div class="sd-card-header bg-light text-center docutils">
<p class="sd-card-text"><strong>支付宝</strong></p>
</div>
<div class="sd-card-body text-center docutils">
<a class="reference internal image-reference" href="_images/alipay.png"><img alt="_images/alipay.png" src="_images/alipay.png" style="height: 100px;" /></a>
</div>
</div>
<div class="sd-card sd-sphinx-override sd-m-3 sd-shadow-sm docutils">
<div class="sd-card-header bg-light text-center docutils">
<p class="sd-card-text"><strong>微信</strong></p>
</div>
<div class="sd-card-body text-center docutils">
<a class="reference internal image-reference" href="_images/wechat.png"><img alt="_images/wechat.png" src="_images/wechat.png" style="height: 100px;" /></a>
</div>
</div>
</div>
</div>
<div class="toctree-wrapper compound">
<p aria-level="2" class="caption" role="heading"><span class="caption-text">数据处理与计算</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="ch-numpy/index.html">NumPy</a><ul>
<li class="toctree-l2"><a class="reference internal" href="ch-numpy/numpy-intro.html">NumPy 简介</a></li>
<li class="toctree-l2"><a class="reference internal" href="ch-numpy/ndarray.html">ndarray</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="ch-pandas/index.html">pandas</a><ul>
<li class="toctree-l2"><a class="reference internal" href="ch-pandas/pandas-intro.html">pandas 简介</a></li>
<li class="toctree-l2"><a class="reference internal" href="ch-pandas/series-dataframe.html">Series 与 DataFrame</a></li>
<li class="toctree-l2"><a class="reference internal" href="ch-pandas/dataframe-slicing.html">数据切片</a></li>
<li class="toctree-l2"><a class="reference internal" href="ch-pandas/data-preprocessing.html">数据处理</a></li>
<li class="toctree-l2"><a class="reference internal" href="ch-pandas/dataframe-groupby.html">分组汇总</a></li>
<li class="toctree-l2"><a class="reference internal" href="ch-pandas/dataframe-merge-concat.html">多表操作</a></li>
<li class="toctree-l2"><a class="reference internal" href="ch-pandas/dataframe-pivot-melt.html">数据透视</a></li>
</ul>
</li>
</ul>
</div>
</div>

Expand Down Expand Up @@ -446,6 +506,21 @@ <h1>Python 数据科学实战<a class="headerlink" href="#python" title="Permali



<div class="bd-sidebar-secondary bd-toc"><div class="sidebar-secondary-items sidebar-secondary__inner">

<div class="sidebar-secondary-item">
<div class="page-toc tocsection onthispage">
<i class="fa-solid fa-list"></i> Contents
</div>
<nav class="bd-toc-nav page-toc">
<ul class="visible nav section-nav flex-column">
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#id1">主要作者</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#id2">赞赏与支持</a></li>
</ul>
</nav></div>

</div></div>


</div>
<footer class="bd-footer-content">
Expand Down
2 changes: 1 addition & 1 deletion docs/searchindex.js

Large diffs are not rendered by default.

Binary file added img/donate/alipay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/donate/wechat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
96 changes: 95 additions & 1 deletion index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,98 @@
# Python 数据科学实战

```{tableofcontents}
::::{grid} 2
:reverse:

:::{grid-item}
:columns: 4
:class: sd-m-auto


:::

:::{grid-item}
:columns: 8
:class: sd-fs-3
开源的、面向人文社科的、案例驱动的 Python 数据科学书籍。

% The SVG rendering breaks latex builds for the GitHub badge, so only include in HTML
```{only} html
[![](https://img.shields.io/github/stars/py-101/python-data-science?style=for-the-badge)](https://github.com/py-101/python-data-science)
```

:::

::::

::::{card-carousel} 3

:::{card}
:margin: 3
:class-body: text-center
:class-header: bg-light text-center
**数据处理与计算 ✏️**
^^^

使用NumPy 和 pandas 进行数学计算、数据预处理。使用 matplotlib 和 plotly 进行数据可视化。
:::

:::{card}
:margin: 3
:class-body: text-center
:class-header: bg-light text-center
**机器学习 🚀**
^^^

使用 PyTorch、scikit-learn 和 statsmodels 进行机器学习。
:::

::::

## 主要作者

::::{grid}
:class-container: text-center
:gutter: 3

:::{grid-item-card}
:link-type: doc
:class-header: bg-light

鲁蔚征
^^^

中国人民大学助理研究员,CCF高性能计算专业委员会执行委员,主要研究大数据与机器学习系统,《Flink原理与实践》作者。
:::

::::

## 赞赏与支持

如果您觉得本书有价值,您可通过支付宝或微信赞赏。

::::{card-carousel} 2

:::{card}
:margin: 3
:class-body: text-center
:class-header: bg-light text-center
**支付宝**
^^^
```{image} ./img/donate/alipay.png
:height: 100
```
:::

:::{card}
:margin: 3
:class-body: text-center
:class-header: bg-light text-center

**微信**
^^^
```{image} ./img/donate/wechat.png
:height: 100
```
:::

::::

0 comments on commit 87943d8

Please sign in to comment.