Skip to content

Commit 23cecda

Browse files
committed
Pandas
1 parent 13b2f1c commit 23cecda

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3349,9 +3349,9 @@ plt.show() # Displays the plot. Also plt.sav
33493349
```python
33503350
>>> df = pd.DataFrame([[1, 2, 3], [4, 5, 6], [7, 8, 6]], list('abc'), list('xyz'))
33513351
>>> df.groupby('z').get_group(6)
3352-
x y
3353-
b 4 5
3354-
c 7 8
3352+
x y z
3353+
b 4 5 6
3354+
c 7 8 6
33553355
```
33563356

33573357
```python

index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
<body>
5656
<header>
57-
<aside>February 2, 2023</aside>
57+
<aside>February 3, 2023</aside>
5858
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
5959
</header>
6060

@@ -2734,9 +2734,9 @@ <h3 id="format-2">Format</h3><div><h4 id="forstandardtypesizesandmanualalignment
27342734
</code></pre>
27352735
<div><h3 id="groupby">GroupBy</h3><p><strong>Object that groups together rows of a dataframe based on the value of the passed column.</strong></p><pre><code class="python language-python hljs"><span class="hljs-meta">&gt;&gt;&gt; </span>df = pd.DataFrame([[<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>], [<span class="hljs-number">4</span>, <span class="hljs-number">5</span>, <span class="hljs-number">6</span>], [<span class="hljs-number">7</span>, <span class="hljs-number">8</span>, <span class="hljs-number">6</span>]], list(<span class="hljs-string">'abc'</span>), list(<span class="hljs-string">'xyz'</span>))
27362736
<span class="hljs-meta">&gt;&gt;&gt; </span>df.groupby(<span class="hljs-string">'z'</span>).get_group(<span class="hljs-number">6</span>)
2737-
x y
2738-
b <span class="hljs-number">4</span> <span class="hljs-number">5</span>
2739-
c <span class="hljs-number">7</span> <span class="hljs-number">8</span>
2737+
x y z
2738+
b <span class="hljs-number">4</span> <span class="hljs-number">5</span> <span class="hljs-number">6</span>
2739+
c <span class="hljs-number">7</span> <span class="hljs-number">8</span> <span class="hljs-number">6</span>
27402740
</code></pre></div>
27412741

27422742

@@ -2923,7 +2923,7 @@ <h3 id="format-2">Format</h3><div><h4 id="forstandardtypesizesandmanualalignment
29232923

29242924

29252925
<footer>
2926-
<aside>February 2, 2023</aside>
2926+
<aside>February 3, 2023</aside>
29272927
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
29282928
</footer>
29292929

0 commit comments

Comments
 (0)