From 55bf8b0031261d4f501fa79fb8ef53760c91a0ce Mon Sep 17 00:00:00 2001 From: Bas des Tombe Date: Sat, 22 Jul 2023 18:43:49 +0200 Subject: [PATCH] Removed deprecated pandas read_csv argument from import ts example New versions of pandas don't support the squeeze argument --- docs/notebooks/09Import_timeseries.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/notebooks/09Import_timeseries.ipynb b/docs/notebooks/09Import_timeseries.ipynb index 9c7229ed..41c81427 100644 --- a/docs/notebooks/09Import_timeseries.ipynb +++ b/docs/notebooks/09Import_timeseries.ipynb @@ -86,9 +86,9 @@ "outputs": [], "source": [ "ts = pd.read_csv(\n", - " filepath, sep=\",\", index_col=0, parse_dates=True, squeeze=True, engine=\"python\"\n", - ") # the latter 2 kwargs are to ensure a pd.Series is returned\n", - "ts = ts.tz_localize(\"Europe/Amsterdam\") # set the timezone" + " filepath, sep=\",\", index_col=0, parse_dates=True\n", + ")[\"Pt100 2\"] # See pandas' read_csv documentation for more options\n", + "ts = ts.tz_localize(\"Europe/Amsterdam\") # Set the timezone" ] }, {