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)
- 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()
+
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()
ex.
df.groupby(column_name).aggregate_method()
- Returns:
- A new DataFrame with the parameter column(s) as the index and all other columns grouped.
- Return Type:
- DataFrame
diff --git a/docs/intro/index.html b/docs/intro/index.html
index ed413402..d3754d44 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 e5b4919b..ab2fb5e8 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 4723bb0f..622e528a 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 1e0ca325..87f19663 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 d7d94f8f..63e930a6 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 7c73deaa..6e91e2bd 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 b357b086..1b13d075 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 ce5994ba..cf9e5cf8 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 d47c72fd..a5f8dd50 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 8ed38415..c4f6a67c 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 279bcbaf..2b20adc4 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 17640dcf..1a6bcb8c 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 aac4e6f3..8bb5a270 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 b7b647a4..1408ac81 100644
--- a/markdown-page/index.html
+++ b/markdown-page/index.html
@@ -5,7 +5,7 @@
Markdown page example | bpd
-
+