-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: dt.month_name & dt.day_name locale parameter needs improvment #51138
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
Comments
what's the output of |
Ow, I didn't know about this command, and I just found out by this command's output that the right way to set the locale attribute was with Maybe a good tip was to modify the |
yup - do you want to make a PR? |
here's the docstring pandas/pandas/core/arrays/datetimes.py Lines 1198 to 1209 in bcb6c1a
|
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Traceback
Issue Description
I'm trying to set a month column for my DF with portuguese names by doing as the docs said, but it didn't work, I even tried with
'English'
which says it is the default but it doesn't work either.Expected Behavior
I expect it to return a serialized column with month names in Portuguese
Installed Versions
INSTALLED VERSIONS
commit : 2e218d1
python : 3.10.9.final.0
python-bits : 64
OS : Linux
OS-release : 6.0.12-76060006-generic
Version : #202212290932
167413972522.04~ca93ccf SMP PREEMPT_DYNAMIC Thu Jmachine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : pt_BR.UTF-8
pandas : 1.5.3
numpy : 1.23.5
pytz : 2022.7
dateutil : 2.8.2
setuptools : 65.6.3
pip : 22.3.1
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.9.1
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.1.2
IPython : 8.7.0
pandas_datareader: None
bs4 : 4.11.1
bottleneck : 1.3.5
brotli :
fastparquet : None
fsspec : None
gcsfs : None
matplotlib : 3.6.2
numba : None
numexpr : 2.8.4
...
xlrd : None
xlwt : None
zstandard : None
tzdata : 2022.7
/home/eduardochaves/miniconda3/envs/datasets_procenge/lib/python3.10/site-packages/_distutils_hack/init.py:33: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
The text was updated successfully, but these errors were encountered: