Skip to content

Commit

Permalink
Removed deprecated pandas read_csv argument from import ts example
Browse files Browse the repository at this point in the history
New versions of pandas don't support the squeeze argument
  • Loading branch information
bdestombe committed Jul 22, 2023
1 parent b466d08 commit 55bf8b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/notebooks/09Import_timeseries.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
{
Expand Down

0 comments on commit 55bf8b0

Please sign in to comment.