-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
CLN: use idiomatic pandas_dtypes in pandas/dtypes/common.py #24541
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
Conversation
cc @TomAugspurger @jbrockmendel should be orthogonal to anything you are doing. |
Codecov Report
@@ Coverage Diff @@
## master #24541 +/- ##
==========================================
- Coverage 92.32% 92.32% -0.01%
==========================================
Files 166 166
Lines 52440 52368 -72
==========================================
- Hits 48417 48349 -68
+ Misses 4023 4019 -4
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #24541 +/- ##
==========================================
- Coverage 92.38% 92.38% -0.01%
==========================================
Files 166 166
Lines 52490 52396 -94
==========================================
- Hits 48493 48404 -89
+ Misses 3997 3992 -5
Continue to review full report at Codecov.
|
c6c3964
to
a19cdfc
Compare
@jbrockmendel if any comments |
A few comments, one possible request for a test. Otherwise LGTM. |
updated |
i have a couple of more changes here. |
ill take a look |
ok this is ready. @jorisvandenbossche @jbrockmendel |
LGTM. The part I'm least familiar with is the IntNA, so grain of salt. Side-note: will this fix these warnings I get in the test logs?
|
yes those warnings are gone |
So I think this closes #24593 then? |
yes this closes #24593 as well. will address comments later today. |
Eg https://travis-ci.org/pandas-dev/pandas/jobs/474964674 (first entry of the last green travis build at the time I commented before) still has some "eprecationWarning: Numeric-style type codes are deprecated and will result in an error in the future." warnings in the log |
I updated the whatsnew about #21681 as well. |
ok warnings fixed up. Basically we were missing paths in core/internals/concat.py and core/dtypes/conat.py for EA operations. |
pandas/compat/__init__.py
Outdated
@@ -139,7 +139,7 @@ def lfilter(*args, **kwargs): | |||
Hashable = collections.abc.Hashable | |||
Iterable = collections.abc.Iterable | |||
Mapping = collections.abc.Mapping | |||
MutableMapping = collections.abc.MutableMapping | |||
MutableMapping = collections.MutableMapping |
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.
I think the one with abc
included was actually correct? (CI is failing now due the warning this raises)
Co-Authored-By: jreback <jeff@reback.net>
This reverts commit b9f4004.
closes #24593
Some benchmarks of
pandas_dtype
construction from a dtype object & strings, only thing slightly suprising isPeriod[D]