'whats difference between pandas.HDFStore.select and pandas.HDFStore.get
There are two functions to read HDF files in pandas get and select. It seems both of them do the same "Retrieve pandas object stored in file," but what is the difference?
It is obvious that select accepts more parameters, but if one specifies only the key argument, it will act precisely as get.
one idea is that get may run faster (because it checks fewer conditions), but this idea is not correct:
print(timeit(lambda: dataset.hdf_store.select('/D/ADMG23202002101011'),number=100))
print(timeit(lambda: dataset.hdf_store.get('/D/ADMG23202002101011'),number=100))
0.6269406000001254
0.7711359369995989
another hypothesis is that maybe select uses get inside itself, but its not even correct due to its source code
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
