From 9da841ccf3bf642a769b563986ab1ff3f7018e20 Mon Sep 17 00:00:00 2001 From: Mattia Almansi Date: Mon, 27 May 2024 11:27:34 +0200 Subject: [PATCH] replace drop() with drop_vars() --- notebooks/wp5/LUCL_land_cover_classification_reliability.ipynb | 2 +- notebooks/wp5/LULC_land_cover_urbanization_trends.ipynb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/notebooks/wp5/LUCL_land_cover_classification_reliability.ipynb b/notebooks/wp5/LUCL_land_cover_classification_reliability.ipynb index 678a6a9..8e995cd 100644 --- a/notebooks/wp5/LUCL_land_cover_classification_reliability.ipynb +++ b/notebooks/wp5/LUCL_land_cover_classification_reliability.ipynb @@ -113,7 +113,7 @@ " transform_func=utils.regionalise,\n", " transform_func_kwargs={\"lon_slice\": lon_slice, \"lat_slice\": lat_slice},\n", ")\n", - "ds = ds.assign_coords(year=ds[\"time\"].dt.year).swap_dims(time=\"year\").drop(\"time\")" + "ds = ds.assign_coords(year=ds[\"time\"].dt.year).swap_dims(time=\"year\").drop_vars(\"time\")" ] }, { diff --git a/notebooks/wp5/LULC_land_cover_urbanization_trends.ipynb b/notebooks/wp5/LULC_land_cover_urbanization_trends.ipynb index 76ab3d7..ab08ed8 100644 --- a/notebooks/wp5/LULC_land_cover_urbanization_trends.ipynb +++ b/notebooks/wp5/LULC_land_cover_urbanization_trends.ipynb @@ -113,7 +113,7 @@ " transform_func=utils.regionalise,\n", " transform_func_kwargs={\"lon_slice\": lon_slice, \"lat_slice\": lat_slice},\n", ")\n", - "ds = ds.assign_coords(year=ds[\"time\"].dt.year).swap_dims(time=\"year\").drop(\"time\")" + "ds = ds.assign_coords(year=ds[\"time\"].dt.year).swap_dims(time=\"year\").drop_vars(\"time\")" ] }, {