Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tutorials #334

Merged
merged 1 commit into from
Sep 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/tutorials/minutes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"source": [
"# setup\n",
"from datetime import datetime\n",
"from zoneinfo import ZoneInfo\n",
"\n",
"import pandas as pd\n",
"import exchange_calendars as xcals"
Expand Down Expand Up @@ -50,7 +51,7 @@
"]\n",
"lon = xcals.get_calendar(\"XLON\")\n",
"for input in inputs:\n",
" assert lon.next_minute(input) == pd.Timestamp('2021-06-15 14:34', tz='UTC')"
" assert lon.next_minute(input) == pd.Timestamp('2021-06-15 14:34', tz=ZoneInfo(\"UTC\"))"
]
},
{
Expand Down
6 changes: 4 additions & 2 deletions docs/tutorials/trading_index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
"outputs": [],
"source": [
"# setup\n",
"from zoneinfo import ZoneInfo\n",
"\n",
"import exchange_calendars as xcals\n",
"import pandas as pd\n",
"\n",
Expand Down Expand Up @@ -3221,7 +3223,7 @@
}
],
"source": [
"pd.Timestamp('2021-12-23 05:00:00', tz=\"UTC\") in period_105[2]"
"pd.Timestamp('2021-12-23 05:00:00', tz=ZoneInfo(\"UTC\")) in period_105[2]"
]
},
{
Expand All @@ -3248,7 +3250,7 @@
}
],
"source": [
"pd.Timestamp('2021-12-23 05:00:00', tz=\"UTC\") in period_105[1]"
"pd.Timestamp('2021-12-23 05:00:00', tz=ZoneInfo(\"UTC\")) in period_105[1]"
]
},
{
Expand Down
Loading