Skip to content
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

Allow the conversion interface to discover pandas indexes #2739

Merged
merged 2 commits into from
May 28, 2018

Conversation

philippjfr
Copy link
Member

Allows referencing pandas indexes in .to interface even when Dataset does not declare them as dimensions.

@philippjfr philippjfr added tag: component: data type: enhancement Minor feature or improvement to an existing feature labels May 27, 2018
@philippjfr philippjfr changed the title Allow to interface to discover pandas indexes Allow the interface to discover pandas indexes May 28, 2018
@philippjfr philippjfr changed the title Allow the interface to discover pandas indexes Allow the conversion interface to discover pandas indexes May 28, 2018
@philippjfr
Copy link
Member Author

Ready to merge.

for d in vdims]
selected = self._element.clone(kdims=ds_kdims, vdims=ds_vdims)
else:
selected = self._element.reindex(groupby+kdims, vdims)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the same logic used elsewhere in a context other than the conversion interface? Is any code shared and is it worth abstracting out?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I cannot think of anywhere this could be reused atm.

@jlstevens
Copy link
Contributor

Other than one question in the comment above, this looks fine and I'm happy to merge once you respond.

@jlstevens jlstevens merged commit 766a4f3 into master May 28, 2018
@philippjfr philippjfr deleted the pandas_conversion_index branch July 4, 2018 11:13
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tag: component: data type: enhancement Minor feature or improvement to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants