From 23cecdafabc0e3c274382d6d3d4ab89a62c9cea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 3 Feb 2023 13:21:51 +0100 Subject: [PATCH] Pandas --- README.md | 6 +++--- index.html | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 08b7d14..0268bda 100644 --- a/README.md +++ b/README.md @@ -3349,9 +3349,9 @@ plt.show() # Displays the plot. Also plt.sav ```python >>> df = pd.DataFrame([[1, 2, 3], [4, 5, 6], [7, 8, 6]], list('abc'), list('xyz')) >>> df.groupby('z').get_group(6) - x y -b 4 5 -c 7 8 + x y z +b 4 5 6 +c 7 8 6 ``` ```python diff --git a/index.html b/index.html index 8bbd5e7..512b96b 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@
- +
@@ -2734,9 +2734,9 @@ plt.show() # Disp

GroupBy

Object that groups together rows of a dataframe based on the value of the passed column.

>>> df = pd.DataFrame([[1, 2, 3], [4, 5, 6], [7, 8, 6]], list('abc'), list('xyz'))
 >>> df.groupby('z').get_group(6)
-   x  y
-b  4  5
-c  7  8
+   x  y  z
+b  4  5  6
+c  7  8  6
 
@@ -2923,7 +2923,7 @@ $ pyinstaller script.py --add-data '<path>:.'