diff --git a/README.md b/README.md index adfa28a..4f6e2a1 100644 --- a/README.md +++ b/README.md @@ -1553,7 +1553,7 @@ value = args. ``` * **Use `'help='` to set argument description that will be displayed in help message.** -* **Use `'default='` to set the default value.** +* **Use `'default='` to set argument's default value.** * **Use `'type=FileType()'` for files. Accepts 'encoding', but 'newline' is None.** @@ -2177,7 +2177,7 @@ product_of_elems = functools.reduce(op.mul, ) union_of_sets = functools.reduce(op.or_, ) first_element = op.methodcaller('pop', 0)() ``` -* **Bitwise operators require objects to have and(), or() and xor() special methods, unlike logical operators that work on all types of objects.** +* **Bitwise operators require objects to have and(), or(), xor() and invert() special methods, unlike logical operators that work on all types of objects.** * **Also: `' = &|^ '` and `' = &|^ '`.** @@ -2191,7 +2191,7 @@ Introspection ### Attributes ```python - = dir() # Names of object's attributes (incl. methods). + = dir() # Names of object's attributes (including methods). = vars() # Dict of writable attributes. Also .__dict__. = hasattr(, '') # Checks if getattr() raises an AttributeError. value = getattr(, '') # Raises AttributeError if attribute is missing. @@ -2564,7 +2564,7 @@ def serve_json(sport): return {'team': team, 'odds': [2.09, 3.74, 3.68]} ``` -#### Starts the app in its own thread and queries it with a post request: +#### Starts the app in its own thread and queries its REST API: ```python # $ pip3 install requests >>> import threading, requests @@ -3167,7 +3167,7 @@ Name: a, dtype: int64 ``` ```python - = pd.concat() # Concats multiple Series into one long Series. + = pd.concat() # Concats multiple series into one long Series. = .combine_first() # Adds items that are not yet present. .update() # Updates items that are already present. ``` diff --git a/index.html b/index.html index 2beb3a3..e3f5de9 100644 --- a/index.html +++ b/index.html @@ -1322,7 +1322,7 @@ value = args.<name>
  • Use 'help=<str>' to set argument description that will be displayed in help message.
  • -
  • Use 'default=<el>' to set the default value.
  • +
  • Use 'default=<el>' to set argument's default value.
  • Use 'type=FileType(<mode>)' for files. Accepts 'encoding', but 'newline' is None.

#Open

Opens the file and returns a corresponding file object.

<file> = open(<path>, mode='r', encoding=None, newline=None)
@@ -1800,7 +1800,7 @@ union_of_sets    = functools.reduce(op.or_, <coll_of_sets>)
 first_element    = op.methodcaller('pop', 0)(<list>)
 
    -
  • Bitwise operators require objects to have and(), or() and xor() special methods, unlike logical operators that work on all types of objects.
  • +
  • Bitwise operators require objects to have and(), or(), xor() and invert() special methods, unlike logical operators that work on all types of objects.
  • Also: '<bool> = <bool> &|^ <bool>' and '<int> = <bool> &|^ <int>'.

#Introspection

<list> = dir()                             # Names of local variables, functions, classes, etc.
@@ -1808,7 +1808,7 @@ first_element    = op.methodcaller('pop', # Dict of global vars, etc. (incl. '__builtins__').
 
-

Attributes

<list> = dir(<object>)                     # Names of object's attributes (incl. methods).
+

Attributes

<list> = dir(<object>)                     # Names of object's attributes (including methods).
 <dict> = vars(<object>)                    # Dict of writable attributes. Also <obj>.__dict__.
 <bool> = hasattr(<object>, '<attr_name>')  # Checks if getattr() raises an AttributeError.
 value  = getattr(<object>, '<attr_name>')  # Raises AttributeError if attribute is missing.
@@ -2106,7 +2106,7 @@ app.run(host=None, port=return {'team': team, 'odds': [2.09, 3.74, 3.68]}
 
-

Starts the app in its own thread and queries it with a post request:

# $ pip3 install requests
+

Starts the app in its own thread and queries its REST API:

# $ pip3 install requests
 >>> import threading, requests
 >>> threading.Thread(target=app.run, daemon=True).start()
 >>> url = 'http://localhost:5000/football/odds'
@@ -2588,7 +2588,7 @@ Name: a, dtype: int64
 
<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> = pd.concat(<coll_of_Sr>)                 # Concats multiple series into one long Series.
 <Sr> = <Sr>.combine_first(<Sr>)                # Adds items that are not yet present.
 <Sr>.update(<Sr>)                              # Updates items that are already present.
 
diff --git a/pdf/index_for_pdf.html b/pdf/index_for_pdf.html index 4603c20..8782568 100644 --- a/pdf/index_for_pdf.html +++ b/pdf/index_for_pdf.html @@ -116,7 +116,7 @@ recursion, 13
reduce function, 11, 31
regular expressions, 5-6
-requests library, 35, 36

+requests library, 35, 36

S

scope, 10, 12, 20
scraping, 35, 43, 46, 47-48