From de546475aca19d709e452761eac8a3d7a05af468 Mon Sep 17 00:00:00 2001 From: Ryan May Date: Thu, 19 Sep 2019 16:44:14 -0600 Subject: [PATCH] MNT: Fix example for xarray 0.13.0 inplace has been removed in favor of assignment. --- tutorials/xarray_tutorial.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/xarray_tutorial.py b/tutorials/xarray_tutorial.py index 29307148c75..7e18b72c97d 100644 --- a/tutorials/xarray_tutorial.py +++ b/tutorials/xarray_tutorial.py @@ -64,14 +64,14 @@ 'v-component_of_wind_isobaric']) # To rename variables, supply a dictionary between old and new names to the rename method -data.rename({ +data = data.rename({ 'Vertical_velocity_pressure_isobaric': 'omega', 'Relative_humidity_isobaric': 'relative_humidity', 'Temperature_isobaric': 'temperature', 'u-component_of_wind_isobaric': 'u', 'v-component_of_wind_isobaric': 'v', 'Geopotential_height_isobaric': 'height' -}, inplace=True) +}) ######################################################################### # Units