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

DataFrame lost columns #88

Closed
mikeun opened this issue Nov 5, 2017 · 3 comments
Closed

DataFrame lost columns #88

mikeun opened this issue Nov 5, 2017 · 3 comments

Comments

@mikeun
Copy link

mikeun commented Nov 5, 2017

I created hdf5 by pandas DataFrame.
I opened it by vitables and can't find one column (last [-1]) and one column name (first [0]).
Column's names are shifted forward with missed first name and last column is hidden.
Table properties are shown all columns and names.
I use:

  • ViTables 3.0.0;
  • Python 3.6.2 |Anaconda custom (64-bit);
  • Ubuntu 16.04
@uvemas uvemas changed the title lost columns DataFrame lost columns Nov 7, 2017
@uvemas
Copy link
Owner

uvemas commented Nov 7, 2017

Thanks for your report. I think the problem here is that the DataFrame implementation (in the df_model.py) is not finished. I'll try to fix the problem but it can take some time to me as I'm not the author of the code.

@ankostis
Copy link
Contributor

ankostis commented Nov 7, 2017

@mikeun would it be possible to craft a code creating the dataframe?

@uvemas
Copy link
Owner

uvemas commented Nov 7, 2017

I can reproduce the problem with this simple code:

store = pd.HDFStore('my_store.hdf')
np.random.seed(1324)
index = pd.date_range('1/1/2017', periods=5)
df = pd.DataFrame(np.random.randn(5, 3), index=index, columns=['A', 'B', 'C'])
store.append('dataframe', df)
store.close()

@uvemas uvemas closed this as completed in 740c8f4 Sep 26, 2018
uvemas added a commit that referenced this issue Sep 26, 2018
fixed #88 (DataFrame lost columns)
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

No branches or pull requests

3 participants