-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CategoricalDtype construction: actually use fastpath #17891
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
CategoricalDtype construction: actually use fastpath #17891
Conversation
passing dtype averts the need for fastpath |
That may be, but I suppose |
we shouldn’t have both (and deprecating fastpath=True) |
Sorry, Jeff, I really don't follow your comments. Please look at the diff / my explanation. It is exactly |
hah didn’t see that better to pass in dtype then as it’s the fastpath anyhow |
I think the point of |
exactly the point. you should create the dtype and pass it (this is the general soln to removing the |
So how does this relate to this PR? As this PR exactly deals with this creation of the dtype. |
actually this is ok. sorry was looking at something else. |
Codecov Report
@@ Coverage Diff @@
## master #17891 +/- ##
==========================================
- Coverage 91.26% 91.24% -0.02%
==========================================
Files 163 163
Lines 50105 50105
==========================================
- Hits 45727 45718 -9
- Misses 4378 4387 +9
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #17891 +/- ##
==========================================
- Coverage 91.26% 91.24% -0.02%
==========================================
Files 163 163
Lines 50105 50105
==========================================
- Hits 45727 45718 -9
- Misses 4378 4387 +9
Continue to review full report at Codecov.
|
Thanks @jorisvandenbossche, sorry I missed that earlier. |
* upstream/master: (76 commits) CategoricalDtype construction: actually use fastpath (pandas-dev#17891) DEPR: Deprecate tupleize_cols in to_csv (pandas-dev#17877) BUG: Fix wrong column selection in drop_duplicates when duplicate column names (pandas-dev#17879) DOC: Adding examples to update docstring (pandas-dev#16812) (pandas-dev#17859) TST: Skip if no openpyxl in test_excel (pandas-dev#17883) TST: Catch read_html slow test warning (pandas-dev#17874) flake8 cleanup (pandas-dev#17873) TST: remove moar warnings (pandas-dev#17872) ENH: tolerance now takes list-like argument for reindex and get_indexer. (pandas-dev#17367) ERR: Raise ValueError when week is passed in to_datetime format witho… (pandas-dev#17819) TST: remove some deprecation warnings (pandas-dev#17870) Refactor index-as-string groupby tests and fix spurious warning (Bug 17383) (pandas-dev#17843) BUG: merging with a boolean/int categorical column (pandas-dev#17841) DEPR: Deprecate read_csv arguments fully (pandas-dev#17865) BUG: to_json - prevent various segfault conditions (GH14256) (pandas-dev#17857) CLN: Use pandas.core.common for None checks (pandas-dev#17816) BUG: set tz on DTI from fixed format HDFStore (pandas-dev#17844) RLS: v0.21.0rc1 Whatsnew cleanup (pandas-dev#17858) DEPR: Deprecate the convert parameter completely (pandas-dev#17831) ...
cc @TomAugspurger the current
CategoricalDtype._from_fastpath(..)
was not any different fromCategoricalDtype(..)
as far as I could see, as thefastpath
argument in_finalize
was not used. This seems the logical fix.