-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Additions to month_name & day_name #51154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOC: Additions to month_name & day_name #51154
Conversation
The CI is getting a |
You will probably need to add |
I added it in the same line where the function was called with |
Thanks @eduardochaves1 |
In the issue #51138 I was trying to set a column in my DF for the month and day's names in portuguese, then a good guy told me about the
locale -a
command from terminal to look for the right way to set thelocale
string parameter for my code to work properly.So I thought I would be nice if the respective docs, month_name & day_name, had these informations for the user to know about.
So I added these infos plus a quick example for each method in the docstrings from
/pandas/core/arrays/datetimes.py
PS.: I just don't know why the
validade_docstrings.py
don't recognize the changes I made in the method's docstring...Output:
validate_docstrings.py pandas.Series.dt.month_name
Output:
validate_docstrings.py pandas.Series.dt.day_name
Output:
pre-commit run --files pandas/core/arrays/datetimes.py