Repository navigation
Test pandas 0.19.0 rc1 - #1540
Merged
Merged
Conversation
mrocklin
force-pushed
the
pandas-0.19-rc1
branch
from
September 15, 2016 13:49
b8efc98 to
df8faf0
Compare
Closed
Member
Author
|
Blocked on |
mrocklin
force-pushed
the
pandas-0.19-rc1
branch
from
October 5, 2016 14:04
7f2d5c7 to
99d0695
Compare
Previously we'd accidently call compute here when inferring metadata. The new groupby implementation segfaults when threads are used to compute the index (apparently), which could happen in some cases. It's easier just to let `aca` handle the metadata inference, so we'll remove it.
Member
|
The only thing still failing is the timestamp indexing, which I believe is caused by pandas-dev/pandas#14354. Do we want to fix it locally dependent on version, or wait for a pandas upstream fix? |
Member
Author
|
I briefly tried doing the following: diff --git a/dask/dataframe/indexing.py b/dask/dataframe/indexing.py
index cc1d8aa..0445091 100644
--- a/dask/dataframe/indexing.py
+++ b/dask/dataframe/indexing.py
@@ -96,10 +96,15 @@ def _maybe_partial_time_string(index, indexer, kind):
stop = index._maybe_cast_slice_bound(indexer.stop, 'right', kind)
else:
stop = indexer.stop
+
+ if start > stop:
+ start, stop = stop, start
return slice(start, stop)
elif isinstance(indexer, pd.compat.string_types):
start = index._maybe_cast_slice_bound(indexer, 'left', 'loc')
stop = index._maybe_cast_slice_bound(indexer, 'right', 'loc')
+ if start > stop:
+ start, stop = stop, start
return slice(start, stop)
return indexerSome problems persisted. They might be resolvable though. I'm somewhat in favor of patching this temporarily on the dask.dataframe side unless Pandas intends to release a bugfix patch quickly. |
Fixes the regression due to pandas-dev/pandas#14354.
Member
|
I just pushed a simple fix for the indexing issue. I think this covers all the pandas 0.19.0 issues. |
Member
Author
|
Grand! |
Member
|
All tests passed. Merging. |
Contributor
|
ideally you should use the api functions pd.types.api.is_categorical |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.