Open dotsdl opened 8 years ago
Storing e.g. a pandas DataFrame with:
pandas
import datreant.core as dtr import datreant.data.attach t = dtr.Treant('spore') t.data['a/dataframe'] = pd.DataFrame(pd.np.random.randn(100, 3))
and then storing e.g. a numpy array with the same key
numpy
t.data['a/dataframe'] = pd.np.random.randn(100, 3)
results in two datasets getting stored with the same name, in the same place:
> t.draw() spore/ +-- a/ | +-- dataframe/ | +-- pdData.h5 | +-- npData.h5 +-- Treant.e3bde18c-4eca-4539-8015-9520d5768c12.json
This should not be possible using the datreant.data Limbs.
datreant.data
Storing e.g. a
pandas
DataFrame with:and then storing e.g. a
numpy
array with the same keyresults in two datasets getting stored with the same name, in the same place:
This should not be possible using the
datreant.data
Limbs.