Skip to content

Commit

Permalink
Deploy: cafa8fd
Browse files Browse the repository at this point in the history
  • Loading branch information
dataframe-api-bot committed Aug 22, 2023
1 parent 864f1f3 commit 0104c02
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
18 changes: 12 additions & 6 deletions draft/API_specification/dataframe_object.html
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@
</li>
<li class="md-nav__item"><a href="#dataframe_api.DataFrame.groupby" class="md-nav__link"><code class="docutils literal notranslate"><span class="pre">DataFrame.groupby()</span></code></a>
</li>
<li class="md-nav__item"><a href="#dataframe_api.DataFrame.insert" class="md-nav__link"><code class="docutils literal notranslate"><span class="pre">DataFrame.insert()</span></code></a>
<li class="md-nav__item"><a href="#dataframe_api.DataFrame.insert_column" class="md-nav__link"><code class="docutils literal notranslate"><span class="pre">DataFrame.insert_column()</span></code></a>
</li>
<li class="md-nav__item"><a href="#dataframe_api.DataFrame.is_nan" class="md-nav__link"><code class="docutils literal notranslate"><span class="pre">DataFrame.is_nan()</span></code></a>
</li>
Expand Down Expand Up @@ -611,7 +611,7 @@
</li>
<li class="md-nav__item"><a href="#dataframe_api.DataFrame.groupby" class="md-nav__link"><code class="docutils literal notranslate"><span class="pre">DataFrame.groupby()</span></code></a>
</li>
<li class="md-nav__item"><a href="#dataframe_api.DataFrame.insert" class="md-nav__link"><code class="docutils literal notranslate"><span class="pre">DataFrame.insert()</span></code></a>
<li class="md-nav__item"><a href="#dataframe_api.DataFrame.insert_column" class="md-nav__link"><code class="docutils literal notranslate"><span class="pre">DataFrame.insert_column()</span></code></a>
</li>
<li class="md-nav__item"><a href="#dataframe_api.DataFrame.is_nan" class="md-nav__link"><code class="docutils literal notranslate"><span class="pre">DataFrame.is_nan()</span></code></a>
</li>
Expand Down Expand Up @@ -1163,15 +1163,21 @@
defined.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="dataframe_api.DataFrame.insert">
<span class="sig-name descname"><span class="pre">insert</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">loc</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">label</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">value</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="column_object.html#dataframe_api.Column" title="dataframe_api.Column"><span class="pre">Column</span></a><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">]</span></span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon"></span> <span class="sig-return-typehint"><a class="reference internal" href="#dataframe_api.DataFrame" title="dataframe_api.DataFrame"><span class="pre">DataFrame</span></a></span></span><a class="headerlink" href="#dataframe_api.DataFrame.insert" title="Permalink to this definition"></a></dt>
<dt class="sig sig-object py" id="dataframe_api.DataFrame.insert_column">
<span class="sig-name descname"><span class="pre">insert_column</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">loc</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">column</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="column_object.html#dataframe_api.Column" title="dataframe_api.Column"><span class="pre">Column</span></a><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">]</span></span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon"></span> <span class="sig-return-typehint"><a class="reference internal" href="#dataframe_api.DataFrame" title="dataframe_api.DataFrame"><span class="pre">DataFrame</span></a></span></span><a class="headerlink" href="#dataframe_api.DataFrame.insert_column" title="Permalink to this definition"></a></dt>
<dd><p>Insert column into DataFrame at specified location.</p>
<p>The column’s name will be used as the label in the resulting dataframe.
To insert the column with a different name, combine with <code class="code docutils literal notranslate"><span class="pre">Column.rename</span></code>,
e.g.:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">new_column</span> <span class="o">=</span> <span class="n">df</span><span class="o">.</span><span class="n">get_column_by_name</span><span class="p">(</span><span class="s1">'a'</span><span class="p">)</span> <span class="o">+</span> <span class="mi">1</span>
<span class="n">df</span> <span class="o">=</span> <span class="n">df</span><span class="o">.</span><span class="n">insert</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="n">new_column</span><span class="o">.</span><span class="n">rename</span><span class="p">(</span><span class="s1">'a_plus_1'</span><span class="p">))</span>
</pre></div>
</div>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>loc</strong> (<em>int</em>) – Insertion index. Must verify 0 &lt;= loc &lt;= len(columns).</p></li>
<li><p><strong>label</strong> (<em>str</em>) – Label of the inserted column.</p></li>
<li><p><strong>value</strong> (<a class="reference internal" href="column_object.html#dataframe_api.Column" title="dataframe_api.Column"><em>Column</em></a>) – </p></li>
<li><p><strong>column</strong> (<a class="reference internal" href="column_object.html#dataframe_api.Column" title="dataframe_api.Column"><em>Column</em></a>) – </p></li>
</ul>
</dd>
</dl>
Expand Down
2 changes: 1 addition & 1 deletion draft/API_specification/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@
<li class="toctree-l3"><a class="reference internal" href="dataframe_object.html#dataframe_api.DataFrame.get_rows"><code class="docutils literal notranslate"><span class="pre">DataFrame.get_rows()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="dataframe_object.html#dataframe_api.DataFrame.get_rows_by_mask"><code class="docutils literal notranslate"><span class="pre">DataFrame.get_rows_by_mask()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="dataframe_object.html#dataframe_api.DataFrame.groupby"><code class="docutils literal notranslate"><span class="pre">DataFrame.groupby()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="dataframe_object.html#dataframe_api.DataFrame.insert"><code class="docutils literal notranslate"><span class="pre">DataFrame.insert()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="dataframe_object.html#dataframe_api.DataFrame.insert_column"><code class="docutils literal notranslate"><span class="pre">DataFrame.insert_column()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="dataframe_object.html#dataframe_api.DataFrame.is_nan"><code class="docutils literal notranslate"><span class="pre">DataFrame.is_nan()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="dataframe_object.html#dataframe_api.DataFrame.is_null"><code class="docutils literal notranslate"><span class="pre">DataFrame.is_null()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="dataframe_object.html#dataframe_api.DataFrame.max"><code class="docutils literal notranslate"><span class="pre">DataFrame.max()</span></code></a></li>
Expand Down
2 changes: 1 addition & 1 deletion draft/_static/pygments.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion draft/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ <h2 id="G">G</h2>
<h2 id="I">I</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="API_specification/dataframe_object.html#dataframe_api.DataFrame.insert">insert() (DataFrame method)</a>
<li><a href="API_specification/dataframe_object.html#dataframe_api.DataFrame.insert_column">insert_column() (DataFrame method)</a>
</li>
<li><a href="API_specification/generated/dataframe_api.Int16.html#dataframe_api.Int16">Int16 (in module dataframe_api)</a>
</li>
Expand Down
Binary file modified draft/objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion draft/searchindex.js

Large diffs are not rendered by default.

0 comments on commit 0104c02

Please sign in to comment.