@@ -4534,11 +4534,11 @@ def filter(self, items=None, like=None, regex=None, axis=None):
4534
4534
Parameters
4535
4535
----------
4536
4536
items : list-like
4537
- List of axis to restrict to (must not all be present) .
4537
+ Keep labels from axis which are in items .
4538
4538
like : string
4539
- Keep axis where "arg in col == True".
4539
+ Keep labels from axis for which "like in label == True".
4540
4540
regex : string (regular expression)
4541
- Keep axis with re.search(regex, col ) == True.
4541
+ Keep labels from axis for which re.search(regex, label ) == True.
4542
4542
axis : int or string axis name
4543
4543
The axis to filter on. By default this is the info axis,
4544
4544
'index' for Series, 'columns' for DataFrame.
@@ -4561,7 +4561,7 @@ def filter(self, items=None, like=None, regex=None, axis=None):
4561
4561
4562
4562
Examples
4563
4563
--------
4564
- >>> df = pd.DataFrame(np.array(([1,2, 3], [4,5, 6])),
4564
+ >>> df = pd.DataFrame(np.array(([1, 2, 3], [4, 5, 6])),
4565
4565
... index=['mouse', 'rabbit'],
4566
4566
... columns=['one', 'two', 'three'])
4567
4567
0 commit comments