diff --git a/docs/_sources/ch-pandas/dataframe-groupby.ipynb b/docs/_sources/ch-pandas/dataframe-groupby.ipynb index ef0615a..712028c 100644 --- a/docs/_sources/ch-pandas/dataframe-groupby.ipynb +++ b/docs/_sources/ch-pandas/dataframe-groupby.ipynb @@ -29,7 +29,10 @@ "iopub.status.busy": "2023-09-18T00:08:11.016110Z", "iopub.status.idle": "2023-09-18T00:08:11.605146Z", "shell.execute_reply": "2023-09-18T00:08:11.604394Z" - } + }, + "tags": [ + "hide-cell" + ] }, "outputs": [ { @@ -41,14 +44,12 @@ } ], "source": [ - "# Hide outputs\n", - "# Hide code\n", "import os\n", "import urllib.request\n", "import zipfile\n", "import pandas as pd\n", "\n", - "folder_path = os.path.join(os.getcwd(), \"./data/pwt\")\n", + "folder_path = os.path.join(os.getcwd(), \"../data/pwt\")\n", "download_url = \"https://www.rug.nl/ggdc/docs/pwt70_06032011version.zip\"\n", "file_name = download_url.split(\"/\")[-1]\n", "if not os.path.exists(folder_path):\n", diff --git a/docs/ch-pandas/dataframe-groupby.html b/docs/ch-pandas/dataframe-groupby.html index 6f2c6f5..2880c9d 100644 --- a/docs/ch-pandas/dataframe-groupby.html +++ b/docs/ch-pandas/dataframe-groupby.html @@ -396,16 +396,19 @@
# Hide outputs
-# Hide code
-import os
+import os
import urllib.request
import zipfile
import pandas as pd
-folder_path = os.path.join(os.getcwd(), "./data/pwt")
+folder_path = os.path.join(os.getcwd(), "../data/pwt")
download_url = "https://www.rug.nl/ggdc/docs/pwt70_06032011version.zip"
file_name = download_url.split("/")[-1]
if not os.path.exists(folder_path):
@@ -432,6 +435,7 @@ 分组汇总
分组变量#
@@ -536,7 +540,7 @@ 汇总变量
-/var/folders/4n/v40br47s46ggrjm9bdm64lwh0000gn/T/ipykernel_92515/459214562.py:1: FutureWarning: Indexing with multiple keys (implicitly converted to a tuple of keys) will be deprecated, use a list instead.
+/var/folders/4n/v40br47s46ggrjm9bdm64lwh0000gn/T/ipykernel_33069/459214562.py:1: FutureWarning: Indexing with multiple keys (implicitly converted to a tuple of keys) will be deprecated, use a list instead.
df.groupby(['year'])['tcgdp','POP'].mean()
@@ -1009,7 +1013,7 @@ 多重索引
-