From d3fec31d51d44c35191e4a7b4d47d1e7d71ee07d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 27 Jun 2020 15:31:48 +0200 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 8434cf5..1721cb7 100644 --- a/README.md +++ b/README.md @@ -3182,7 +3182,7 @@ b 3 4 = .set_index(column_key) # Replaces row keys with values from a column. = .reset_index() # Moves row keys to their own column. = .filter('', axis=1) # Only keeps columns whose key matches the regex. - = .melt(id_vars=column_key/s) # Convers DF from wide to long format. + = .melt(id_vars=column_key/s) # Converts DF from wide to long format. ``` #### Merge, Join, Concat: diff --git a/index.html b/index.html index 7cf350e..198fde6 100644 --- a/index.html +++ b/index.html @@ -2708,7 +2708,7 @@ b 3 4
<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>.filter('<regex>', axis=1)      # Only keeps columns whose key matches the regex.
-<DF>    = <DF>.melt(id_vars=column_key/s)     # Convers DF from wide to long format.
+<DF>    = <DF>.melt(id_vars=column_key/s)     # Converts DF from wide to long format.
 

Merge, Join, Concat:

>>> l = DataFrame([[1, 2], [3, 4]], index=['a', 'b'], columns=['x', 'y'])
    x  y