From f98d6ac84c514a696b885c42695826fc82b6c9c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 5 Dec 2020 15:10:42 +0100 Subject: [PATCH] Pandas --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c8a8b1f..4c532bb 100644 --- a/README.md +++ b/README.md @@ -3182,7 +3182,7 @@ b 3 4 ```python = .set_index(column_key) # Replaces row keys with values from a column. - = .reset_index() # Moves row keys to their own column. + = .reset_index() # Moves row keys to column named index. = .filter('', axis=1) # Only keeps columns whose key matches the regex. = .melt(id_vars=column_key/s) # Converts DF from wide to long format. ``` diff --git a/index.html b/index.html index 57e75e9..ac77d67 100644 --- a/index.html +++ b/index.html @@ -2710,7 +2710,7 @@ b 3 4 <DF> = <DF> +-*/ <el/Sr/DF> # Items with non-matching keys get value NaN.
<DF>    = <DF>.set_index(column_key)          # Replaces row keys with values from a column.
-<DF>    = <DF>.reset_index()                  # Moves row keys to their own column.
+<DF>    = <DF>.reset_index()                  # Moves row keys to column named index.
 <DF>    = <DF>.filter('<regex>', axis=1)      # Only keeps columns whose key matches the regex.
 <DF>    = <DF>.melt(id_vars=column_key/s)     # Converts DF from wide to long format.