Skip to content

BUG: GH10392 bug where Table.select_column does not preserve column name #10401

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

Merged
merged 1 commit into from
Jun 23, 2015

Conversation

kawochen
Copy link
Contributor

To close #10392

@jreback jreback added Bug IO HDF5 read_hdf, HDFStore labels Jun 22, 2015
@jreback jreback added this to the 0.17.0 milestone Jun 22, 2015
expected = df4['B']
try:
result = store.select_column('df4', 'B')
except KeyError as err:
Copy link
Contributor

Choose a reason for hiding this comment

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

you don't need this try, except at all, if the result is returned then the test passes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok. I just wanted to change the error type so that it would be clear it is one of the things being tested, not an error in the testing code itself.

@kawochen
Copy link
Contributor Author

tests are green

jreback added a commit that referenced this pull request Jun 23, 2015
BUG: GH10392 bug where Table.select_column does not preserve column name
@jreback jreback merged commit 8f94f9b into pandas-dev:master Jun 23, 2015
@jreback
Copy link
Contributor

jreback commented Jun 23, 2015

thanks you siir!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug IO HDF5 read_hdf, HDFStore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: select_column does not preserve the column name
2 participants