-
Notifications
You must be signed in to change notification settings - Fork 14.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
fix: datetime.data in series #20618
fix: datetime.data in series #20618
Conversation
Codecov Report
@@ Coverage Diff @@
## master #20618 +/- ##
=======================================
Coverage 66.82% 66.82%
=======================================
Files 1752 1752
Lines 65609 65616 +7
Branches 6938 6938
=======================================
+ Hits 43842 43849 +7
Misses 20007 20007
Partials 1760 1760
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
It's a shame that Pandas doesn't have native support for datetime.date
objects. Maybe this is yet another reason we should eventually replace it with PyArrow.
Thanks, @john-bodley! I am impressed with the Arrow zero-copy feature. |
(cherry picked from commit 414cc99)
(cherry picked from commit 414cc99)
(cherry picked from commit 414cc99)
Background
the
pd.api.types.is_datetime64_any_dtype(series)
is not able to check a series that containsdatetime.date
, thedtype
of the dataframe will beobject
e.g.:if a series is a DateTime series, the
pd.api.types.is_datetime64_any_dtype(series)
will correctly check dtype.Solution
add a new function
is_datetime_series
to only check series type instead of dtype.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
date.type.in.series.mov
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION