Skip to content

don't need len around shape #34337

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

Closed
wants to merge 1 commit into from
Closed

don't need len around shape #34337

wants to merge 1 commit into from

Conversation

SilasK
Copy link

@SilasK SilasK commented May 23, 2020

#Fix #34274

@MarcoGorelli
Copy link
Member

Thanks @SilasK - could you add a test to show how this fixes the issue?

@jreback jreback added IO HDF5 read_hdf, HDFStore Clean labels May 25, 2020
@jreback jreback added this to the 1.1 milestone May 25, 2020
@@ -4789,7 +4789,7 @@ def _maybe_convert_for_string_atom(

# we cannot serialize this data, so report an exception on a column
# by column basis
for i in range(len(block.shape[0])):
for i in range(block.shape[0]):
Copy link
Contributor

Choose a reason for hiding this comment

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

can you show what the block.shape is in the test suite now (pick a couple of example tests).

@jreback
Copy link
Contributor

jreback commented Jun 14, 2020

@SilasK this needs a test where this breaks / why you are changing

@TomAugspurger
Copy link
Contributor

@SilasK can you add a test? #34645 has an example.

@TomAugspurger
Copy link
Contributor

@SilasK do you have time to add a test?

@TomAugspurger TomAugspurger removed this from the 1.1 milestone Jul 7, 2020
@SilasK
Copy link
Author

SilasK commented Jul 8, 2020 via email

@MarcoGorelli
Copy link
Member

@simonjayhawkins
Copy link
Member

@SilasK Thanks for the PR. closing as stale. LMK if you want to continue and I'll reopen.

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

Successfully merging this pull request may close these issues.

BUG: small error in pandas/io/pytables.py
5 participants