From d0e9118c7532bba205991406f93e58fce3b9cda2 Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Mon, 31 Oct 2022 07:14:31 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- ons/gdp.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ons/gdp.py b/ons/gdp.py index 6e04f6a..eb24a1a 100644 --- a/ons/gdp.py +++ b/ons/gdp.py @@ -18,9 +18,7 @@ def get_gdp() -> pd.Series: df.rename(columns={df.columns[0]: "GDP"}, inplace=True) df.set_index("date", inplace=True) df.sort_index(ascending=True, inplace=True) - s = df.squeeze() - - return s + return df.squeeze() def get_infl_from_gdp( data: pd.Series) ->pd.Series: s = data.pct_change().round(4)