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
BUG: options date_dayfirst
and date_yearfirst
conflict
#43164
Comments
Hi , I'm a beginner to open source and can I contribute on this ? |
@k4thir not really, because the error has not been triaged or discussed, so it is unclear what you should do. Instead trying searching for pandas issues with |
Hi @attack68, To set the date format for your dataframe index, you have to use strftime(format) Please add the following line in your code to get the index date to start from the day df.index = df.index.strftime('%d/%m/%Y') # 01/01/2000 Some of the Date format available, df.index = df.index.strftime('%d/%m/%Y') # 01/01/2000 For more info, please go through the below link, |
Hi @JARVIS-03 |
I only see this explicitly called here pandas/pandas/_libs/tslibs/parsing.pyx Lines 315 to 319 in 4e1f51c
So possibly the docs are incorrect. It's also concerning we don't have tests for these configurations. Since it appears this is only for parsing, I think it's okay that both default to False |
Can someone confirm that this is a bug:
Also it seems weird to have the options
display.date_dayfirst
anddisplay.date_yearfirst
with both set toFalse
by default, and yet print year first..Docs say:
When True, prints and parses dates with the day first, eg 20/01/2005
. Maybe this is just for parsing?The text was updated successfully, but these errors were encountered: