Skip to content

Commit

Permalink
update UI
Browse files Browse the repository at this point in the history
  • Loading branch information
luweizheng committed Nov 18, 2023
1 parent a4717be commit 160f6fd
Show file tree
Hide file tree
Showing 19 changed files with 307 additions and 300 deletions.
6 changes: 6 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ only_build_toc_files: true
html:
use_issues_button: true
use_repository_button: true

sphinx:
config:
bibtex_reference_style: author_year # or label, super, \supercite
numfig_format: {'figure': '图 %s', 'table': '表 %s',
'code-block': '代码片段 %s', 'section': '章节 %s'}
1 change: 1 addition & 0 deletions _toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ format: jb-book
root: index
parts:
- caption: 数据处理与计算
numbered: 2
chapters:
- file: ch-numpy/index
sections:
Expand Down
42 changes: 21 additions & 21 deletions docs/ch-numpy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<title>NumPy &#8212; Python 数据科学实战</title>
<title>1. NumPy &#8212; Python 数据科学实战</title>



Expand Down Expand Up @@ -65,7 +65,7 @@
<script>DOCUMENTATION_OPTIONS.pagename = 'ch-numpy/index';</script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="NumPy 简介" href="numpy-intro.html" />
<link rel="next" title="1.1. NumPy 简介" href="numpy-intro.html" />
<link rel="prev" title="Python 数据科学实战" href="../index.html" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="docsearch:language" content="en"/>
Expand Down Expand Up @@ -169,21 +169,21 @@
</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">数据处理与计算</span></p>
<ul class="current nav bd-sidenav">
<li class="toctree-l1 current active has-children"><a class="current reference internal" href="#">NumPy</a><input checked="" class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-1"><i class="fa-solid fa-chevron-down"></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="numpy-intro.html">NumPy 简介</a></li>
<li class="toctree-l2"><a class="reference internal" href="ndarray.html">ndarray</a></li>
<li class="toctree-l2"><a class="reference internal" href="ndarray-slicing-index.html">切片与索引</a></li>
<li class="toctree-l2"><a class="reference internal" href="random.html">随机数生成</a></li>
<li class="toctree-l1 current active has-children"><a class="current reference internal" href="#">1. NumPy</a><input checked="" class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-1"><i class="fa-solid fa-chevron-down"></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="numpy-intro.html">1.1. NumPy 简介</a></li>
<li class="toctree-l2"><a class="reference internal" href="ndarray.html">1.2. ndarray</a></li>
<li class="toctree-l2"><a class="reference internal" href="ndarray-slicing-index.html">1.3. 切片与索引</a></li>
<li class="toctree-l2"><a class="reference internal" href="random.html">1.4. 随机数生成</a></li>
</ul>
</li>
<li class="toctree-l1 has-children"><a class="reference internal" href="../ch-pandas/index.html">pandas</a><input class="toctree-checkbox" id="toctree-checkbox-2" name="toctree-checkbox-2" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-2"><i class="fa-solid fa-chevron-down"></i></label><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>
<li class="toctree-l1 has-children"><a class="reference internal" href="../ch-pandas/index.html">2. pandas</a><input class="toctree-checkbox" id="toctree-checkbox-2" name="toctree-checkbox-2" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-2"><i class="fa-solid fa-chevron-down"></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="../ch-pandas/pandas-intro.html">2.1. pandas 简介</a></li>
<li class="toctree-l2"><a class="reference internal" href="../ch-pandas/series-dataframe.html">2.2. Series 与 DataFrame</a></li>
<li class="toctree-l2"><a class="reference internal" href="../ch-pandas/dataframe-slicing.html">2.3. 数据切片</a></li>
<li class="toctree-l2"><a class="reference internal" href="../ch-pandas/data-preprocessing.html">2.4. 数据处理</a></li>
<li class="toctree-l2"><a class="reference internal" href="../ch-pandas/dataframe-groupby.html">2.5. 分组汇总</a></li>
<li class="toctree-l2"><a class="reference internal" href="../ch-pandas/dataframe-merge-concat.html">2.6. 多表操作</a></li>
<li class="toctree-l2"><a class="reference internal" href="../ch-pandas/dataframe-pivot-melt.html">2.7. 数据透视</a></li>
</ul>
</li>
</ul>
Expand Down Expand Up @@ -382,14 +382,14 @@ <h1>NumPy</h1>
<article class="bd-article" role="main">

<section class="tex2jax_ignore mathjax_ignore" id="numpy">
<h1>NumPy<a class="headerlink" href="#numpy" title="Permalink to this heading">#</a></h1>
<h1><span class="section-number">1. </span>NumPy<a class="headerlink" href="#numpy" title="Permalink to this heading">#</a></h1>
<p>本节主要讲解如何使用 NumPy 进行高维数组计算。</p>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="numpy-intro.html">NumPy 简介</a></li>
<li class="toctree-l1"><a class="reference internal" href="ndarray.html">ndarray</a></li>
<li class="toctree-l1"><a class="reference internal" href="ndarray-slicing-index.html">切片与索引</a></li>
<li class="toctree-l1"><a class="reference internal" href="random.html">随机数生成</a></li>
<li class="toctree-l1"><a class="reference internal" href="numpy-intro.html">1.1. NumPy 简介</a></li>
<li class="toctree-l1"><a class="reference internal" href="ndarray.html">1.2. ndarray</a></li>
<li class="toctree-l1"><a class="reference internal" href="ndarray-slicing-index.html">1.3. 切片与索引</a></li>
<li class="toctree-l1"><a class="reference internal" href="random.html">1.4. 随机数生成</a></li>
</ul>
</div>
</section>
Expand Down Expand Up @@ -438,7 +438,7 @@ <h1>NumPy<a class="headerlink" href="#numpy" title="Permalink to this heading">#
title="next page">
<div class="prev-next-info">
<p class="prev-next-subtitle">next</p>
<p class="prev-next-title">NumPy 简介</p>
<p class="prev-next-title"><span class="section-number">1.1. </span>NumPy 简介</p>
</div>
<i class="fa-solid fa-angle-right"></i>
</a>
Expand Down
38 changes: 19 additions & 19 deletions docs/ch-numpy/ndarray-slicing-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<title>切片与索引 &#8212; Python 数据科学实战</title>
<title>1.3. 切片与索引 &#8212; Python 数据科学实战</title>



Expand Down Expand Up @@ -65,8 +65,8 @@
<script>DOCUMENTATION_OPTIONS.pagename = 'ch-numpy/ndarray-slicing-index';</script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="随机数生成" href="random.html" />
<link rel="prev" title="ndarray" href="ndarray.html" />
<link rel="next" title="1.4. 随机数生成" href="random.html" />
<link rel="prev" title="1.2. ndarray" href="ndarray.html" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="docsearch:language" content="en"/>
</head>
Expand Down Expand Up @@ -169,21 +169,21 @@
</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">数据处理与计算</span></p>
<ul class="current nav bd-sidenav">
<li class="toctree-l1 current active has-children"><a class="reference internal" href="index.html">NumPy</a><input checked="" class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-1"><i class="fa-solid fa-chevron-down"></i></label><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="numpy-intro.html">NumPy 简介</a></li>
<li class="toctree-l2"><a class="reference internal" href="ndarray.html">ndarray</a></li>
<li class="toctree-l2 current active"><a class="current reference internal" href="#">切片与索引</a></li>
<li class="toctree-l2"><a class="reference internal" href="random.html">随机数生成</a></li>
<li class="toctree-l1 current active has-children"><a class="reference internal" href="index.html">1. NumPy</a><input checked="" class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-1"><i class="fa-solid fa-chevron-down"></i></label><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="numpy-intro.html">1.1. NumPy 简介</a></li>
<li class="toctree-l2"><a class="reference internal" href="ndarray.html">1.2. ndarray</a></li>
<li class="toctree-l2 current active"><a class="current reference internal" href="#">1.3. 切片与索引</a></li>
<li class="toctree-l2"><a class="reference internal" href="random.html">1.4. 随机数生成</a></li>
</ul>
</li>
<li class="toctree-l1 has-children"><a class="reference internal" href="../ch-pandas/index.html">pandas</a><input class="toctree-checkbox" id="toctree-checkbox-2" name="toctree-checkbox-2" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-2"><i class="fa-solid fa-chevron-down"></i></label><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>
<li class="toctree-l1 has-children"><a class="reference internal" href="../ch-pandas/index.html">2. pandas</a><input class="toctree-checkbox" id="toctree-checkbox-2" name="toctree-checkbox-2" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-2"><i class="fa-solid fa-chevron-down"></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="../ch-pandas/pandas-intro.html">2.1. pandas 简介</a></li>
<li class="toctree-l2"><a class="reference internal" href="../ch-pandas/series-dataframe.html">2.2. Series 与 DataFrame</a></li>
<li class="toctree-l2"><a class="reference internal" href="../ch-pandas/dataframe-slicing.html">2.3. 数据切片</a></li>
<li class="toctree-l2"><a class="reference internal" href="../ch-pandas/data-preprocessing.html">2.4. 数据处理</a></li>
<li class="toctree-l2"><a class="reference internal" href="../ch-pandas/dataframe-groupby.html">2.5. 分组汇总</a></li>
<li class="toctree-l2"><a class="reference internal" href="../ch-pandas/dataframe-merge-concat.html">2.6. 多表操作</a></li>
<li class="toctree-l2"><a class="reference internal" href="../ch-pandas/dataframe-pivot-melt.html">2.7. 数据透视</a></li>
</ul>
</li>
</ul>
Expand Down Expand Up @@ -401,7 +401,7 @@ <h2> Contents </h2>
<article class="bd-article" role="main">

<section class="tex2jax_ignore mathjax_ignore" id="id1">
<h1>切片与索引<a class="headerlink" href="#id1" title="Permalink to this heading">#</a></h1>
<h1><span class="section-number">1.3. </span>切片与索引<a class="headerlink" href="#id1" title="Permalink to this heading">#</a></h1>
<p>索引(Index)从 <code class="docutils literal notranslate"><span class="pre">ndarray</span></code> 里定位所需要的数据,切片(Slice)从 <code class="docutils literal notranslate"><span class="pre">ndarray</span></code> 里选择一些数据。切片和索引都是在 <code class="docutils literal notranslate"><span class="pre">ndarray</span></code> 上选择所需要的数据。</p>
<p>无论是索引还是切片,都需要一个 Index 标号来定位从左往右或者从右往左第几个数据是我们想要的数据。从左往右时起始位置从 0 开始,即 Index = 0 是整个 <code class="docutils literal notranslate"><span class="pre">ndarray</span></code> 最左侧元素;从右往左索引时起始位置从 - 1 开始,即 Index = -1 表示最右侧元素。</p>
<div class="cell tag_hide-cell docutils container">
Expand Down Expand Up @@ -629,15 +629,15 @@ <h3>切片<a class="headerlink" href="#id7" title="Permalink to this heading">#<
<i class="fa-solid fa-angle-left"></i>
<div class="prev-next-info">
<p class="prev-next-subtitle">previous</p>
<p class="prev-next-title">ndarray</p>
<p class="prev-next-title"><span class="section-number">1.2. </span>ndarray</p>
</div>
</a>
<a class="right-next"
href="random.html"
title="next page">
<div class="prev-next-info">
<p class="prev-next-subtitle">next</p>
<p class="prev-next-title">随机数生成</p>
<p class="prev-next-title"><span class="section-number">1.4. </span>随机数生成</p>
</div>
<i class="fa-solid fa-angle-right"></i>
</a>
Expand Down
Loading

0 comments on commit 160f6fd

Please sign in to comment.