-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
ENH: make guess_datetime_format public #55079
Conversation
doc/source/whatsnew/v2.1.1.rst
Outdated
@@ -42,7 +42,7 @@ Bug fixes | |||
|
|||
Other | |||
~~~~~ | |||
- | |||
- Enhancement in :meth:`_libs.tslibs.parsing.guess_datetime_format` to make public (:issue:`54727`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Enhancement in :meth:`_libs.tslibs.parsing.guess_datetime_format` to make public (:issue:`54727`) | |
- :meth:`pandas.tseries.guess_datetime_format` is now available (:issue:`54727`) |
Can you move this to the other enhancement section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also this should be in 2.2.0.rst
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WIll do - thanks for the review!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved enhancement note to 2.2.0.rst
unde the Other Enhancements section ✅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add this to the API reference documentation?
is the API reference documentation in |
I think you can just add an entry to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for your pr
whilst we're changing this
- in the
guess_Datetime_format
docstring, where it says
Warning: dayfirst=True is not strict, but will prefer to parse
with day first (this is a known bug).
could you write that as a sphinx directive? so .. warning::
. check the to_datetime
docs, there's something similar there
- could we add an example to the docstring please? just a simple one-liner of it guessing a datetime format, and another one-liner of it not being able to guess another one, will do
Thanks for the review and comments @mroeschke and @MarcoGorelli
|
Can you fix the failing ci checks please |
👋 I'm getting a bit stuck with these failing checks - which seem to be mostly due to the following attribute error: I updated the docstring in parsing.pyx with a sphinx |
This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this. |
hi @nnlnr - is this still active? if you could fixup the conflicts I can finish it up |
👋 @MarcoGorelli - thanks! That would be great - let me fix up the conflicts and circle back here |
website build looks good: merging then, thanks @nnlnr ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
going to need @mroeschke to approve before this can be merged
Top-level dealing with Interval data | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autosummary:: | ||
:toctree: api/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also add a whatsnew note in 2.2 under the |
Thanks @nnlnr and @MarcoGorelli |
Thanks @MarcoGorelli @mroeschke!! 🎉 🙏 |
doc/source/whatsnew/v2.1.1.rst
file if fixing a bug or adding a new feature.