-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Open
Labels
DocsNeeds DiscussionRequires discussion from core team before further actionRequires discussion from core team before further action
Description
Ref: #59878 (comment)
E.g. https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.dt.to_period.html
We currently copy the docstring from the underlying array method, which is at times either vague or incorrect as in the example above. We could instead override the docstring with custom value in pandas/core/accessor.py
in the _create_delegator_method
function. We would need a place to store the docstrings, and it would be a significant effort to add them all.
Possible approach: Create a new subdirectory, pandas/core/docstrings/
for storing docstrings for purposes like this, and add series_dt.py
there. It would contain a dictionary mapping the method name to the docstring.
Metadata
Metadata
Assignees
Labels
DocsNeeds DiscussionRequires discussion from core team before further actionRequires discussion from core team before further action