diff --git a/README.md b/README.md index 1386b36..31b6053 100644 --- a/README.md +++ b/README.md @@ -2272,7 +2272,7 @@ log.basicConfig( * **Parent logger can be specified by naming the child logger `'<parent>.<name>'`.** * **If logger doesn't have a set level it inherits it from the first ancestor that does.** * **Formatter also accepts: pathname, filename, funcName, lineno, thread and process.** -* **RotatingFileHandler creates and deletes files based on 'maxBytes' and 'backupCount' args.** +* **RotatingFileHandler creates and deletes files based on 'maxBytes', 'backupCount' args.** * **An object with `'filter(<LogRecord>)'` method (or the method itself) can be added to loggers and handlers via addFilter(). Message is dropped if filter() returns a false value.** #### Creates a logger that writes all messages to file and sends them to the root's handler that prints warnings or higher: @@ -3386,7 +3386,7 @@ c 7 8 6 ```python <GB> = <DF>.groupby(col_key/s) # Splits DF into groups based on passed column. <DF> = <GB>.apply(<func>) # Maps each group. Func can return DF, Sr or el. -<DF> = <GB>.get_group(<num>) # Selects a group by grouping column's value. +<DF> = <GB>.get_group(<el>) # Selects a group by grouping column's value. <Sr> = <GB>.size() # A Sr of group sizes. Same keys as get_group(). <GB> = <GB>[col_key] # Single column GB. All operations return a Sr. ``` diff --git a/index.html b/index.html index 850f4b9..ce91649 100644 --- a/index.html +++ b/index.html @@ -1860,7 +1860,7 @@ log.debug/info/warning/error/critical(<str>) <span class="hljs-commen <li><strong>Parent logger can be specified by naming the child logger <code class="python hljs"><span class="hljs-string">'<parent>.<name>'</span></code>.</strong></li> <li><strong>If logger doesn't have a set level it inherits it from the first ancestor that does.</strong></li> <li><strong>Formatter also accepts: pathname, filename, funcName, lineno, thread and process.</strong></li> -<li><strong>RotatingFileHandler creates and deletes files based on 'maxBytes' and 'backupCount' args.</strong></li> +<li><strong>RotatingFileHandler creates and deletes files based on 'maxBytes', 'backupCount' args.</strong></li> <li><strong>An object with <code class="python hljs"><span class="hljs-string">'filter(<LogRecord>)'</span></code> method (or the method itself) can be added to loggers and handlers via addFilter(). Message is dropped if filter() returns a false value.</strong></li> </ul> <div><h4 id="createsaloggerthatwritesallmessagestofileandsendsthemtotherootshandlerthatprintswarningsorhigher">Creates a logger that writes all messages to file and sends them to the root's handler that prints warnings or higher:</h4><pre><code class="python language-python hljs"><span class="hljs-meta">>>> </span>logger = log.getLogger(<span class="hljs-string">'my_module'</span>) @@ -2756,7 +2756,7 @@ c <span class="hljs-number">7</span> <span class="hljs-number">8</span> <span <pre><code class="python language-python hljs"><GB> = <DF>.groupby(col_key/s) <span class="hljs-comment"># Splits DF into groups based on passed column.</span> <DF> = <GB>.apply(<func>) <span class="hljs-comment"># Maps each group. Func can return DF, Sr or el.</span> -<DF> = <GB>.get_group(<num>) <span class="hljs-comment"># Selects a group by grouping column's value.</span> +<DF> = <GB>.get_group(<el>) <span class="hljs-comment"># Selects a group by grouping column's value.</span> <Sr> = <GB>.size() <span class="hljs-comment"># A Sr of group sizes. Same keys as get_group().</span> <GB> = <GB>[col_key] <span class="hljs-comment"># Single column GB. All operations return a Sr.</span> </code></pre>