diff --git a/README.md b/README.md index e3025e2..a7f6a28 100644 --- a/README.md +++ b/README.md @@ -3180,9 +3180,9 @@ b 3 4 ```python = .set_index(column_key) # Replaces row keys with values from a column. - = .reset_index() # Moves row keys to column named index. + = .reset_index() # Moves row keys to a 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. + = .melt(id_vars=column_key/s) # Converts DataFrame from wide to long format. ``` #### Merge, Join, Concat: @@ -3224,7 +3224,7 @@ c 6 7 +------------------------+---------------+------------+------------+--------------------------+ | l.combine_first(r) | x y z | | | Adds missing rows and | | | a 1 2 . | | | columns. Also updates | -| | b 3 4 5 | | | cells that contain NaN. | +| | b 3 4 5 | | | items that contain NaN. | | | c . 6 7 | | | R must be a DataFrame. | +------------------------+---------------+------------+------------+--------------------------+ ``` diff --git a/index.html b/index.html index 462f71f..45e8846 100644 --- a/index.html +++ b/index.html @@ -2721,9 +2721,9 @@ 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 column named index.
+<DF>    = <DF>.reset_index()                  # Moves row keys to a 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.
+<DF>    = <DF>.melt(id_vars=column_key/s)     # Converts DataFrame from wide to long format.
 

Merge, Join, Concat:

>>> l = DataFrame([[1, 2], [3, 4]], index=['a', 'b'], columns=['x', 'y'])
    x  y 
@@ -2761,7 +2761,7 @@ c  6  7
 ┠────────────────────────┼───────────────┼────────────┼────────────┼──────────────────────────┨
 ┃ l.combine_first(r)     │    x   y   z  │            │            │ Adds missing rows and    ┃
 ┃                        │ a  1   2   .  │            │            │ columns. Also updates    ┃
-┃                        │ b  3   4   5  │            │            │ cells that contain NaN.  ┃
+┃                        │ b  3   4   5  │            │            │ items that contain NaN.  ┃
 ┃                        │ c  .   6   7  │            │            │ R must be a DataFrame.   ┃
 ┗━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 
diff --git a/parse.js b/parse.js index 2b6e25d..affd313 100755 --- a/parse.js +++ b/parse.js @@ -362,7 +362,7 @@ const DIAGRAM_15_B = "┠────────────────────────┼───────────────┼────────────┼────────────┼──────────────────────────┨\n" + "┃ l.combine_first(r) │ x y z │ │ │ Adds missing rows and ┃\n" + "┃ │ a 1 2 . │ │ │ columns. Also updates ┃\n" + - "┃ │ b 3 4 5 │ │ │ cells that contain NaN. ┃\n" + + "┃ │ b 3 4 5 │ │ │ items that contain NaN. ┃\n" + "┃ │ c . 6 7 │ │ │ R must be a DataFrame. ┃\n" + "┗━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━┛\n";