-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Pandas display.date option not working #11501
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
I don't think the actual display part of this was ever implemented. the parsing is (though not tested with the actual option value). pull-requests welcome on both counts! |
So, currently, the only way to display sorted dates is Y-m-d ? |
no this is just a display issue you can sort in many ways |
Yeah that's what I meant, there's no way of displaying a sorted dataframe in other dateformats? |
no, that's why its marked as an enhancement. though you could convert to string (e.g. via |
If it's a string then it can't be sorted? But if it's a datetime object then the format must be the default one? Damn, that sucks :/ |
you are missing the point. you can sort however you want. this is just a display issue only. |
I think we're on different pages too. If I have a sorted dataframe and I want to export this to a .csv or a .xlsx, I don't have any way of changing how the date format is displayed? If I wanted it to be shown as 01/11/15 instead of 2015-11-01 there's no way of doing that currently? |
Apologies, I see what you were talking about. In the code I put, if I had just changed the format after I sorted it, then I would have had no problems, |
How is this completed? The example given in the OP still doesn't work as implied by the docs for Pandas options. |
pandas: 0.17.0
python: 3.5.0.final.0
Prints:
Setting both options to
True
andFalse
doesn't work nor does only setting one. Printing df and df1 have the same result. And not specifying adayfirst
argument inpd.to_datetime
doesn't change anything.The text was updated successfully, but these errors were encountered: