Skip to content

Commit 310545d

Browse files
shriyakalakatapmhatre1
authored andcommitted
DOC: Fix Index.inferred type SA01 and Index.slice_locs RT03 errors (pandas-dev#58435)
Fix Index.inferred type SA01 and Index.slice_locs RT03 errors
1 parent c324d9b commit 310545d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ci/code_checks.sh

-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
118118
-i "pandas.Index.get_loc PR07,RT03,SA01" \
119119
-i "pandas.Index.get_slice_bound PR07" \
120120
-i "pandas.Index.identical PR01,SA01" \
121-
-i "pandas.Index.inferred_type SA01" \
122121
-i "pandas.Index.insert PR07,RT03,SA01" \
123122
-i "pandas.Index.intersection PR07,RT03,SA01" \
124123
-i "pandas.Index.join PR07,RT03,SA01" \
@@ -128,7 +127,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
128127
-i "pandas.Index.ravel PR01,RT03" \
129128
-i "pandas.Index.reindex PR07" \
130129
-i "pandas.Index.slice_indexer PR07,RT03,SA01" \
131-
-i "pandas.Index.slice_locs RT03" \
132130
-i "pandas.Index.str PR01,SA01" \
133131
-i "pandas.Index.symmetric_difference PR07,RT03,SA01" \
134132
-i "pandas.Index.take PR01,PR07" \

pandas/core/indexes/base.py

+6
Original file line numberDiff line numberDiff line change
@@ -2360,6 +2360,10 @@ def inferred_type(self) -> str_t:
23602360
"""
23612361
Return a string of the type inferred from the values.
23622362
2363+
See Also
2364+
--------
2365+
Index.dtype : Return the dtype object of the underlying data.
2366+
23632367
Examples
23642368
--------
23652369
>>> idx = pd.Index([1, 2, 3])
@@ -6452,6 +6456,8 @@ def slice_locs(self, start=None, end=None, step=None) -> tuple[int, int]:
64526456
Returns
64536457
-------
64546458
tuple[int, int]
6459+
Returns a tuple of two integers representing the slice locations for the
6460+
input labels within the index.
64556461
64566462
See Also
64576463
--------

0 commit comments

Comments
 (0)