diff --git a/README.md b/README.md index 04dc2d4..dc2cfa8 100644 --- a/README.md +++ b/README.md @@ -2685,7 +2685,7 @@ import numpy as np ``` ```perl -<2d_bools> = <2d_array> ><== # 1d_array must have size of a row. +<2d_bools> = <2d_array> > # 1d_array must have size of a row. <1d/2d_a> = <2d_array>[<2d/1d_bools>] # 1d_bools must have size of a column. ``` * **Indexes should not be tuples because Python converts `'obj[i, j]'` to `'obj[(i, j)]'`!** @@ -3161,8 +3161,8 @@ Name: a, dtype: int64 ``` ```python - = ><== # Returns a Series of bools. - = +-*/ # Items with non-matching keys get value NaN. + = > # Returns a Series of bools. + = + # Items with non-matching keys get value NaN. ``` ```python @@ -3236,19 +3236,19 @@ b 3 4 ```python = [column_key/s] # Or: .column_key = [row_bools] # Keeps rows as specified by bools. - = [] # Assigns NaN to False values. + = [] # Assigns NaN to values that are False in bools. ``` ```python - = ><== # Returns DF of bools. Sr is treated as a row. - = +-*/ # Items with non-matching keys get value NaN. + = > # Returns DF of bools. Sr is treated as a row. + = + # Items with non-matching keys get value NaN. ``` ```python - = .set_index(column_key) # Replaces row keys with values from a column. + = .set_index(column_key) # Replaces row keys with values from the column. = .reset_index(drop=False) # Drops or moves row keys to column named index. = .sort_index(ascending=True) # Sorts rows by row keys. Use `axis=1` for cols. - = .sort_values(column_key/s) # Sorts rows by the passed column/s. Same. + = .sort_values(column_key/s) # Sorts rows by passed column/s. Also `axis=1`. ``` #### DataFrame — Merge, Join, Concat: diff --git a/index.html b/index.html index 6f6d4fe..d0db38a 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@
- +
@@ -2196,7 +2196,7 @@ $ snakeviz test.prof <1d_array> = <2d_array>[row_indexes, column_indexes] # <3d_a>[table_i/is, row_is, column_is] <1d_array> = <2d_array>[row_indexes, column_index] # <3d_a>[table_i/is, row_is, column_i] -
<2d_bools> = <2d_array> ><== <el/1d/2d_array>           # 1d_array must have size of a row.
+
<2d_bools> = <2d_array> > <el/1d/2d_array>              # 1d_array must have size of a row.
 <1d/2d_a>  = <2d_array>[<2d/1d_bools>]                  # 1d_bools must have size of a column.
 
    @@ -2584,8 +2584,8 @@ Name: a, dtype: int64 <Sr> = <Sr>[keys/indexes] # Or: <Sr>[<keys_slice/slice>] <Sr> = <Sr>[bools] # Or: <Sr>.loc/iloc[bools]
-
<Sr> = <Sr> ><== <el/Sr>                       # Returns a Series of bools.
-<Sr> = <Sr> +-*/ <el/Sr>                       # Items with non-matching keys get value NaN.
+
<Sr> = <Sr> > <el/Sr>                          # Returns a Series of bools.
+<Sr> = <Sr> + <el/Sr>                          # Items with non-matching keys get value NaN.
 
<Sr> = pd.concat(<coll_of_Sr>)                 # Concats multiple Series into one long Series.
 <Sr> = <Sr>.combine_first(<Sr>)                # Adds items that are not yet present.
@@ -2641,15 +2641,15 @@ b  3  4
 
<Sr/DF> = <DF>[column_key/s]                   # Or: <DF>.column_key
 <DF>    = <DF>[row_bools]                      # Keeps rows as specified by bools.
-<DF>    = <DF>[<DF_of_bools>]                  # Assigns NaN to False values.
+<DF>    = <DF>[<DF_of_bools>]                  # Assigns NaN to values that are False in bools.
 
-
<DF>    = <DF> ><== <el/Sr/DF>                 # Returns DF of bools. Sr is treated as a row.
-<DF>    = <DF> +-*/ <el/Sr/DF>                 # Items with non-matching keys get value NaN.
+
<DF>    = <DF> > <el/Sr/DF>                    # Returns DF of bools. Sr is treated as a row.
+<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>.set_index(column_key)           # Replaces row keys with values from the column.
 <DF>    = <DF>.reset_index(drop=False)         # Drops or moves row keys to column named index.
 <DF>    = <DF>.sort_index(ascending=True)      # Sorts rows by row keys. Use `axis=1` for cols.
-<DF>    = <DF>.sort_values(column_key/s)       # Sorts rows by the passed column/s. Same.
+<DF>    = <DF>.sort_values(column_key/s)       # Sorts rows by passed column/s. Also `axis=1`.
 

DataFrame — Merge, Join, Concat:

>>> l = pd.DataFrame([[1, 2], [3, 4]], index=['a', 'b'], columns=['x', 'y'])
    x  y
@@ -2928,7 +2928,7 @@ $ deactivate                  # Deactivates the activ
  
 
   
- +
diff --git a/parse.js b/parse.js index a326748..3373a7f 100755 --- a/parse.js +++ b/parse.js @@ -791,7 +791,7 @@ function changeCodeLanguages() { $('code').not('.python').not('.text').not('.bash').not('.apache').addClass('python'); $('code:contains( = <2d_array>[row_index, column_index])').removeClass().addClass('bash'); $('code:contains(<2d_array> = <2d_array>[row_indexes])').removeClass().addClass('bash'); - $('code:contains(<2d_bools> = <2d_array> ><== )').removeClass().addClass('bash'); + $('code:contains(<2d_bools> = <2d_array> > )').removeClass().addClass('bash'); $('code.perl').removeClass().addClass('python'); }