df.groupby(column_name)
or
df.groupby([column_names])
-
Group DataFrame by values in columns specified in column_name or a list of column_names.
A groupby operation groups large amounts of data based on the column name(s)
- Note:
- Grouping without an aggregate method will return a DataFrameGroupBy object (not DataFrame)
- Input:
- column_name : string
- Groups by the column specified. The column becomes the index.
- column_names : list (of strings)
- Groups by all listed columns, starting with the first one in the list. The columns become the indices.
+
Group DataFrame by values in columns specified in column_name or a list of column_names.
A groupby operation groups large amounts of data based on the column name(s)
- Input:
- column_name : string
- Groups by the column specified. The column becomes the index.
- column_names : list (of strings)
- Groups by all listed columns, starting with the first one in the list. The columns become the indices.
- Note:
- Grouping without an aggregate method will return a DataFrameGroupBy object (not DataFrame)
Aggregate Methods
-
.mean()
.median()
.count()
.max()
.min()
.sum()
+
.mean()
.median()
.count()
.max()
.min()
.sum()
- Returns:
- df_gb - groupby object that contains information about the groups.
- Return Type:
- DataFrameGroupBy
diff --git a/docs/intro/index.html b/docs/intro/index.html
index 34b1b37c..de2ac5fc 100644
--- a/docs/intro/index.html
+++ b/docs/intro/index.html
@@ -5,7 +5,7 @@
intro | bpd
-
+
diff --git a/docs/plotting/histogram/index.html b/docs/plotting/histogram/index.html
index d62b5fc7..bd741a0d 100644
--- a/docs/plotting/histogram/index.html
+++ b/docs/plotting/histogram/index.html
@@ -5,7 +5,7 @@
histogram | bpd
-
+
diff --git a/docs/series-methods/ser.count()/index.html b/docs/series-methods/ser.count()/index.html
index 715ae448..afcdfb4f 100644
--- a/docs/series-methods/ser.count()/index.html
+++ b/docs/series-methods/ser.count()/index.html
@@ -5,7 +5,7 @@
ser.count() | bpd
-
+
diff --git a/docs/series-methods/ser.max()/index.html b/docs/series-methods/ser.max()/index.html
index 86449ee0..88fd83e7 100644
--- a/docs/series-methods/ser.max()/index.html
+++ b/docs/series-methods/ser.max()/index.html
@@ -5,7 +5,7 @@
ser.max() | bpd
-
+
diff --git a/docs/tutorial-basics/congratulations/index.html b/docs/tutorial-basics/congratulations/index.html
index 2d36100c..cd49f647 100644
--- a/docs/tutorial-basics/congratulations/index.html
+++ b/docs/tutorial-basics/congratulations/index.html
@@ -5,7 +5,7 @@
Congratulations! | bpd
-
+
diff --git a/docs/tutorial-basics/create-a-blog-post/index.html b/docs/tutorial-basics/create-a-blog-post/index.html
index dd8ca1f0..69780510 100644
--- a/docs/tutorial-basics/create-a-blog-post/index.html
+++ b/docs/tutorial-basics/create-a-blog-post/index.html
@@ -5,7 +5,7 @@
Create a Blog Post | bpd
-
+
diff --git a/docs/tutorial-basics/create-a-document/index.html b/docs/tutorial-basics/create-a-document/index.html
index 4ec20e69..666edc79 100644
--- a/docs/tutorial-basics/create-a-document/index.html
+++ b/docs/tutorial-basics/create-a-document/index.html
@@ -5,7 +5,7 @@
Create a Document | bpd
-
+
diff --git a/docs/tutorial-basics/create-a-page/index.html b/docs/tutorial-basics/create-a-page/index.html
index 159cce90..0517a8db 100644
--- a/docs/tutorial-basics/create-a-page/index.html
+++ b/docs/tutorial-basics/create-a-page/index.html
@@ -5,7 +5,7 @@
Create a Page | bpd
-
+
diff --git a/docs/tutorial-basics/deploy-your-site/index.html b/docs/tutorial-basics/deploy-your-site/index.html
index 273cb7d4..12ba3d5b 100644
--- a/docs/tutorial-basics/deploy-your-site/index.html
+++ b/docs/tutorial-basics/deploy-your-site/index.html
@@ -5,7 +5,7 @@
Deploy your site | bpd
-
+
diff --git a/docs/tutorial-basics/markdown-features/index.html b/docs/tutorial-basics/markdown-features/index.html
index a21a5d2a..8068920a 100644
--- a/docs/tutorial-basics/markdown-features/index.html
+++ b/docs/tutorial-basics/markdown-features/index.html
@@ -5,7 +5,7 @@
Markdown Features | bpd
-
+
diff --git a/docs/tutorial-extras/manage-docs-versions/index.html b/docs/tutorial-extras/manage-docs-versions/index.html
index abdcbec5..dd012bdb 100644
--- a/docs/tutorial-extras/manage-docs-versions/index.html
+++ b/docs/tutorial-extras/manage-docs-versions/index.html
@@ -5,7 +5,7 @@
Manage Docs Versions | bpd
-
+
diff --git a/docs/tutorial-extras/translate-your-site/index.html b/docs/tutorial-extras/translate-your-site/index.html
index deaa884a..5f95e211 100644
--- a/docs/tutorial-extras/translate-your-site/index.html
+++ b/docs/tutorial-extras/translate-your-site/index.html
@@ -5,7 +5,7 @@
Translate your site | bpd
-
+
diff --git a/index.html b/index.html
index c2035fc5..c6a5902d 100644
--- a/index.html
+++ b/index.html
@@ -5,7 +5,7 @@
bpd reference sheet | bpd
-
+
diff --git a/markdown-page/index.html b/markdown-page/index.html
index 0da5f292..aeffa68e 100644
--- a/markdown-page/index.html
+++ b/markdown-page/index.html
@@ -5,7 +5,7 @@
Markdown page example | bpd
-
+