Skip to content

ValueError: Excel does not support datetimes with timezones. #380

Closed Answered by theOehrly
McHouse asked this question in Q&A
Discussion options

You must be logged in to vote

From the release notes of v3.0.0:

In the event schedule, Session*Date will now be a timezone-aware local timestamp (previously: local, but not timezone-aware). Additionally, for each session there now exists a non-timezone aware UTC timestamp in Session*DateUtc (#253). Timezone information and UTC timestamps are only available when using one of 'fastf1' or 'f1timing' as backend.

Also have a look at https://docs.fastf1.dev/events.html#event-schedule-data

Basically, you have two options.

  1. Strip the convert the local timezone columns to timezone-naive values
  2. Only use the UTC columns

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@McHouse
Comment options

Answer selected by McHouse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants