Skip to content

Commit 1775e92

Browse files
DOC: ensure indexer properties get docstring
1 parent c567701 commit 1775e92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ def _indexer(self):
10341034
setattr(self, iname, i)
10351035
return i
10361036

1037-
setattr(cls, name, property(_indexer))
1037+
setattr(cls, name, property(_indexer, doc=indexer.__doc__))
10381038

10391039
# add to our internal names set
10401040
cls._internal_names_set.add(iname)

0 commit comments

Comments
 (0)