You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pandas and xarray allow users to drop part of the dataset with a drop method - see e.g. https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.drop.html. Which is opposite to sel() but should have the same syntax. The drop method should return a new Comparer or ComparerCollection with all data except the dropped.
Two new methods should be added to Comparer and ComparerCollection, respectively, both named drop(). Add them below sel() method
xarray.Dataset.drop discourages the use of drop in favor of drop_vars and drop_sel, probably because of the potential confusion of dropping both rows or columns with the same method.
I don't think you will need to drop time or area in the same way as specific modelresults or observations so let's just do obs, models, and variables. I would prefer to keep the name drop() though
pandas and xarray allow users to drop part of the dataset with a drop method - see e.g. https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.drop.html. Which is opposite to
sel()
but should have the same syntax. The drop method should return a new Comparer or ComparerCollection with all data except the dropped.Two new methods should be added to Comparer and ComparerCollection, respectively, both named drop(). Add them below sel() method
modelskill/modelskill/comparison/_comparison.py
Line 838 in db2f7c2
modelskill/modelskill/comparison/_collection.py
Line 301 in db2f7c2
The text was updated successfully, but these errors were encountered: