We have previously added a remove_terms function in the datalayer which allows for terms to removed from the datalayer. The motivation for the addition of this function was to allow terms to be removed and replaced during conversion from one file type to another.
A copy function for the datalayer could be useful so that the original datalayer object remains unchanged and is not overwritten. I believe this can be compared to pandas, where actions are performed on a copy of a datalayer unless inplace=True is set.
Using deepcopy will not work for HDF5 backend (but is fine for memory backend), so copy function should be added to datalayer (information in file layer and datalayer will have to be copied).
Note: Pandas dataframes and hdf5 both have copy functions
We have previously added a
remove_termsfunction in the datalayer which allows for terms to removed from the datalayer. The motivation for the addition of this function was to allow terms to be removed and replaced during conversion from one file type to another.A
copyfunction for the datalayer could be useful so that the original datalayer object remains unchanged and is not overwritten. I believe this can be compared topandas, where actions are performed on a copy of a datalayer unlessinplace=Trueis set.Using
deepcopywill not work for HDF5 backend (but is fine for memory backend), socopyfunction should be added to datalayer (information in file layer and datalayer will have to be copied).Note: Pandas dataframes and hdf5 both have
copyfunctions