Skip to content

Issue using .to_datetime on laps data frame #451

Answered by Casper-Guo
laurence9899 asked this question in Q&A
Discussion options

You must be logged in to vote

A minimally functional implementation:

import fastf1 as f
import fastf1.plotting as p
import pandas as pd
import matplotlib.pyplot as plt

race = f.get_session(2023, 1, 'R')
race.load()
p.setup_mpl()

laptimes = race.laps.pick_quicklaps()["LapTime"]

fig, ax = plt.subplots()
plt.hist(laptimes)
plt.show()

Replies: 2 comments 2 replies

Comment options

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

Answer selected by laurence9899
Comment options

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

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