We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 898786c commit 241c73bCopy full SHA for 241c73b
1 file changed
packages/data/src/pyearthtools/data/transforms/derive.py
@@ -405,7 +405,7 @@ def derive_equations(
405
dataset_copy[key].attrs.update(**attrs)
406
407
# Drop variables used in the calculation
408
- dataset_copy = dataset_copy.drop(set(drop_vars).intersection(dataset_copy.data_vars), errors="ignore") # type: ignore
+ dataset_copy = dataset_copy.drop_vars(set(drop_vars).intersection(dataset_copy.data_vars), errors="ignore") # type: ignore
409
410
return dataset_copy
411
0 commit comments