-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
Conversation
|
||
def create_test_file(): | ||
col_nums = [0] | ||
df = pd.DataFrame({"V1":["a","b","c","d","e", "aaaah!!!"], |
There was a problem hiding this comment.
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
this is where to make the change: https://github.com/pydata/pandas/blob/master/pandas/io/pytables.py#L3248 |
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 |
tests should be actually in test_pytables.py and just slot into the existing infrastructure |
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. |
guidlines are here no worries. just trying to help / get people to contribute. |
closing, but if you'd like to update, pls reopen |
No problem. I anyway did not get how you want it to be solved. |
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. |
closes #10381
The fix replaces named index columns in
Table.index_axes
with their names and correctsmin_itemsize
if it contains 'index' item which is not inTable.index_axes