-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Add track_times flag for HDFStore put method #32682
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
Comments
How to reproduce:
Once you have several files (2 is enough), check on their checksums:
Because of the track_times=True by default the sha is different. Then change this line: https://github.com/pandas-dev/pandas/blob/master/pandas/io/pytables.py#L4144 |
https://www.pytables.org/usersguide/libref/file_class.html?highlight=create_table#tables.File.create_table this flag already defaults to |
I see, that @rbenes has implemented the feature in above mentioned PR, will it be merged soon, so we can close this issue? |
When adding table to HDF using put method of HDFStore, it would be good to have option to set track_times flag used in pytables in method create_table. Thanks to this flag it is possible to stop tracking of times the file was changed. This is causing problems when versioning the HDF files and using checksums.
For this, it is necessary to propagate this flag from: https://github.com/pandas-dev/pandas/blob/master/pandas/io/pytables.py#L973 to this line: https://github.com/pandas-dev/pandas/blob/master/pandas/io/pytables.py#L4144
The text was updated successfully, but these errors were encountered: