ArtesiaWater / hydropandas

Module for loading observation data into custom DataFrames
https://hydropandas.readthedocs.io
MIT License
52 stars 11 forks source link

unexpected result when `deep=True` #143

Closed OnnoEbbens closed 1 year ago

OnnoEbbens commented 1 year ago

When you create a copy of an ObsCollection using deep=True the observations in both ObsCollection still point to the same object in memory. In other words when you execute the code below it will print the same id twice.

oc_copy = oc.copy(deep=True)
print(id(oc.obs.values[0]))
print(id(oc_copy.obs.values[0]))