Skip to content

interpreting index name in min_itemsize specification #11364, #10381 #11368

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 2 commits into from

Conversation

DSLituiev
Copy link


def create_test_file():
col_nums = [0]
df = pd.DataFrame({"V1":["a","b","c","d","e", "aaaah!!!"],
Copy link
Contributor

Choose a reason for hiding this comment

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

you need to craft a test along the lines of the tests in pandas/io/tests/test_pytables.py

@jreback
Copy link
Contributor

jreback commented Oct 19, 2015

@jreback jreback changed the title fixes #11364, #10381 interpreting index name in min_itemsize specification #11364, #10381 Oct 19, 2015
@jreback jreback added Bug IO HDF5 read_hdf, HDFStore labels Oct 19, 2015
@DSLituiev
Copy link
Author

I updated the test, but sorry I do not see how to handle it by changing https://github.com/pydata/pandas/blob/master/pandas/io/pytables.py#L3248 as it works on data_columns and the issue concerns the index columns.

@jreback
Copy link
Contributor

jreback commented Oct 20, 2015

tests should be actually in test_pytables.py

and just slot into the existing infrastructure
you are reinventing the wheel

@DSLituiev
Copy link
Author

I am sorry to admit I am unfamiliar with your infrastructure and conventions. I am not a professional software developer and it is first time I am trying it. Does it need to come in a special place? Anyway, I do not get your idea with implementation.

@jreback
Copy link
Contributor

jreback commented Oct 20, 2015

guidlines are here

no worries. just trying to help / get people to contribute.

@jreback
Copy link
Contributor

jreback commented Nov 18, 2015

closing, but if you'd like to update, pls reopen

@jreback jreback closed this Nov 18, 2015
@DSLituiev
Copy link
Author

No problem. I anyway did not get how you want it to be solved.
As I wrote https://github.com/pydata/pandas/blob/master/pandas/io/pytables.py#L3248 works on data_columns and the issue concerns the index columns.

@jreback
Copy link
Contributor

jreback commented Nov 18, 2015

I think the references get moved. (as the file was updated). no worries. I was looking for a general fix ,rather than special casing here.

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: DataFrame.to_hdf doesn't pass along min_itemsize for index
2 participants