5
5
from pandas ._libs .indexing import _NDFrameIndexerBase
6
6
from pandas ._libs .lib import item_from_zerodim
7
7
from pandas .errors import AbstractMethodError
8
- from pandas .util ._decorators import Appender
8
+ from pandas .util ._decorators import doc
9
9
10
10
from pandas .core .dtypes .common import (
11
11
is_float ,
@@ -90,7 +90,7 @@ class IndexingMixin:
90
90
91
91
@property
92
92
def iloc (self ) -> "_iLocIndexer" :
93
- """
93
+ f """
94
94
Purely integer-location based indexing for selection by position.
95
95
96
96
``.iloc[]`` is primarily integer position based (from ``0`` to
@@ -123,9 +123,9 @@ def iloc(self) -> "_iLocIndexer":
123
123
124
124
Examples
125
125
--------
126
- >>> mydict = [{'a': 1, 'b': 2, 'c': 3, 'd': 4},
127
- ... {'a': 100, 'b': 200, 'c': 300, 'd': 400},
128
- ... {'a': 1000, 'b': 2000, 'c': 3000, 'd': 4000 }]
126
+ >>> mydict = [{{ 'a': 1, 'b': 2, 'c': 3, 'd': 4} },
127
+ ... {{ 'a': 100, 'b': 200, 'c': 300, 'd': 400} },
128
+ ... {{ 'a': 1000, 'b': 2000, 'c': 3000, 'd': 4000 } }]
129
129
>>> df = pd.DataFrame(mydict)
130
130
>>> df
131
131
a b c d
@@ -871,7 +871,7 @@ def _getbool_axis(self, key, axis: int):
871
871
return self .obj ._take_with_is_copy (inds , axis = axis )
872
872
873
873
874
- @Appender (IndexingMixin .loc . __doc__ )
874
+ @doc (IndexingMixin .loc )
875
875
class _LocIndexer (_LocationIndexer ):
876
876
_takeable : bool = False
877
877
_valid_types = (
@@ -883,7 +883,7 @@ class _LocIndexer(_LocationIndexer):
883
883
# -------------------------------------------------------------------
884
884
# Key Checks
885
885
886
- @Appender (_LocationIndexer ._validate_key . __doc__ )
886
+ @doc (_LocationIndexer ._validate_key )
887
887
def _validate_key (self , key , axis : int ):
888
888
889
889
# valid for a collection of labels (we check their presence later)
@@ -1342,7 +1342,7 @@ def _validate_read_indexer(
1342
1342
)
1343
1343
1344
1344
1345
- @Appender (IndexingMixin .iloc . __doc__ )
1345
+ @doc (IndexingMixin .iloc )
1346
1346
class _iLocIndexer (_LocationIndexer ):
1347
1347
_valid_types = (
1348
1348
"integer, integer slice (START point is INCLUDED, END "
@@ -2078,7 +2078,7 @@ def __setitem__(self, key, value):
2078
2078
self .obj ._set_value (* key , value = value , takeable = self ._takeable )
2079
2079
2080
2080
2081
- @Appender (IndexingMixin .at . __doc__ )
2081
+ @doc (IndexingMixin .at )
2082
2082
class _AtIndexer (_ScalarAccessIndexer ):
2083
2083
_takeable = False
2084
2084
@@ -2098,7 +2098,7 @@ def _convert_key(self, key, is_setter: bool = False):
2098
2098
return tuple (lkey )
2099
2099
2100
2100
2101
- @Appender (IndexingMixin .iat . __doc__ )
2101
+ @doc (IndexingMixin .iat )
2102
2102
class _iAtIndexer (_ScalarAccessIndexer ):
2103
2103
_takeable = True
2104
2104
0 commit comments