We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc0ae35 commit 82449b9Copy full SHA for 82449b9
ci/code_checks.sh
@@ -89,12 +89,9 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
89
pandas.DataFrame.to_sql \
90
pandas.read_stata \
91
pandas.plotting.scatter_matrix \
92
- pandas.Index.rename \
93
pandas.Index.droplevel \
94
- pandas.Index.isin \
95
pandas.MultiIndex.names \
96
pandas.MultiIndex.droplevel \
97
- pandas.IndexSlice \
98
pandas.Grouper \
99
pandas.io.formats.style.Styler.map \
100
pandas.io.formats.style.Styler.apply_index \
pandas/core/indexes/base.py
@@ -1953,7 +1953,7 @@ def rename(self, name, inplace: bool = False) -> Self | None:
1953
1954
>>> idx = pd.MultiIndex.from_product([['python', 'cobra'],
1955
... [2018, 2019]],
1956
- ... names=['kind', 'year'])
+ ... names=['kind', 'year'])
1957
>>> idx
1958
MultiIndex([('python', 2018),
1959
('python', 2019),
@@ -6575,7 +6575,7 @@ def isin(self, values, level=None) -> npt.NDArray[np.bool_]:
6575
6576
Examples
6577
--------
6578
- >>> idx = pd.Index([1,2,3])
+ >>> idx = pd.Index([1, 2, 3])
6579
6580
Index([1, 2, 3], dtype='int64')
6581
@@ -6584,7 +6584,7 @@ def isin(self, values, level=None) -> npt.NDArray[np.bool_]:
6584
>>> idx.isin([1, 4])
6585
array([ True, False, False])
6586
6587
- >>> midx = pd.MultiIndex.from_arrays([[1,2,3],
+ >>> midx = pd.MultiIndex.from_arrays([[1, 2, 3],
6588
... ['red', 'blue', 'green']],
6589
... names=('number', 'color'))
6590
>>> midx
pandas/core/indexing.py
@@ -121,7 +121,7 @@ class _IndexSlice:
121
122
123
124
- >>> midx = pd.MultiIndex.from_product([['A0','A1'], ['B0','B1','B2','B3']])
+ >>> midx = pd.MultiIndex.from_product([['A0', 'A1'], ['B0', 'B1', 'B2', 'B3']])
125
>>> columns = ['foo', 'bar']
126
>>> dfmi = pd.DataFrame(np.arange(16).reshape((len(midx), len(columns))),
127
... index=midx, columns=columns)
0 commit comments