Skip to content

Commit

Permalink
replace drop() with drop_vars()
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed May 27, 2024
1 parent c32da2f commit 9da841c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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\")"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/wp5/LULC_land_cover_urbanization_trends.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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\")"
]
},
{
Expand Down

0 comments on commit 9da841c

Please sign in to comment.