-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Handle range on heterogeneously typed Dataset column #2345
Conversation
ca2382e
to
ff26b55
Compare
This is one semantic change in Python 3 that I find to be downright annoying. Anyway, the suggested fix makes sense. |
holoviews/core/data/pandas.py
Outdated
dimensions = [dataset.get_dimensions(d).name for d in dimensions] | ||
inds = [dataset.data.columns.index(dim.name) for dim in dimensions] | ||
return dataset.data.values[:, inds] | ||
|
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 don't quite see how this relates to the python 2 vs 3 sorting issue. Is this method implementating an unrelated fix?
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.
Yes, accidentally pushed this. Will revert.
bf5ea1b
to
92d9e35
Compare
Going to need rebuilt test data, but let's get #1978 merged first since that also requires new test data. |
92d9e35
to
7eeae5a
Compare
Happy to merge when the tests go green. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Calling range on a heterogeneously typed column currently causes all kinds of issues (including errors) due to python 3 sorting semantics. While range should generally not be called on object or string dtype columns it currently is so this needs to work robustly for the time being. Therefore this PR uses the python2sort utility to do the sorting robustly in python3.