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

BUG: rename axes #51

Merged
merged 1 commit into from
Jul 18, 2018
Merged

BUG: rename axes #51

merged 1 commit into from
Jul 18, 2018

Conversation

eigenfoo
Copy link
Contributor

Fixes bug introduced in #49 (and hopefully fixes Jenkins build)

@eigenfoo eigenfoo requested a review from aseyboldt July 18, 2018 17:53
.rename_axis(['data_meta_user_id',
'data_meta_algorithm_id',
'data_meta_code_id'], axis=0)
.squeeze())
Copy link
Collaborator

@aseyboldt aseyboldt Jul 18, 2018

Choose a reason for hiding this comment

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

What does the squeeze do here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It coerces the DataFrame (with one column) into a pd.Series so that xarray turns it into a DataArray instead of a DataSet

Copy link
Collaborator

Choose a reason for hiding this comment

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

Makes sense

@aseyboldt aseyboldt merged commit 4556ad0 into master Jul 18, 2018
@aseyboldt aseyboldt deleted the fix_dims branch July 18, 2018 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants