Plotting F1 race data
Casus Plotting formule 1 data
Data is provided by Ivon Kok.
It contains points per location per F1 coureur. The progress in points will be plotted by a cumsum plot
import pandas as pdLoad data
df = pd.read_csv('data/points.csv')Inspect data
df.head(2)0
Hamilton
25
19
25
25
7
0
18
19
12
...
19
0
25
0
0
0
0
0
0
0
1
Verstappen
18
25
18
19
25
0
26
25
26
...
25
0
18
0
0
0
0
0
0
0
2 rows × 23 columns
df.tail(2)19
Kubica
0
0
0
0
0
0
0
0
0
...
0
0
0
0
0
0
0
0
0
0
20
Mazepin
0
0
0
0
0
0
0
0
0
...
0
0
0
0
0
0
0
0
0
0
2 rows × 23 columns
count
21.000000
21.000000
21.000000
21.000000
21.000000
21.000000
21.000000
21.000000
21.000000
21.000000
...
21.000000
21.000000
21.000000
21.0
21.0
21.0
21.0
21.0
21.0
21.0
mean
4.857143
4.857143
4.857143
4.857143
4.857143
4.809524
4.857143
4.857143
4.857143
4.809524
...
4.857143
4.857143
4.857143
0.0
0.0
0.0
0.0
0.0
0.0
0.0
std
7.329978
7.350413
7.329978
7.350413
7.268327
7.256852
7.397876
7.350413
7.397876
7.256852
...
7.350413
7.397876
7.268327
0.0
0.0
0.0
0.0
0.0
0.0
0.0
min
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
...
0.000000
0.000000
0.000000
0.0
0.0
0.0
0.0
0.0
0.0
0.0
25%
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
...
0.000000
0.000000
0.000000
0.0
0.0
0.0
0.0
0.0
0.0
0.0
50%
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
...
0.000000
0.000000
0.000000
0.0
0.0
0.0
0.0
0.0
0.0
0.0
75%
8.000000
8.000000
8.000000
8.000000
8.000000
8.000000
8.000000
8.000000
8.000000
8.000000
...
8.000000
8.000000
8.000000
0.0
0.0
0.0
0.0
0.0
0.0
0.0
max
25.000000
25.000000
25.000000
25.000000
25.000000
25.000000
26.000000
25.000000
26.000000
25.000000
...
25.000000
26.000000
25.000000
0.0
0.0
0.0
0.0
0.0
0.0
0.0
8 rows × 22 columns

Prepare data

0
Hamilton
25
19
25
25
7
0
18
19
12
25
18
7.5
19
0
25
1
Verstappen
18
25
18
19
25
0
26
25
26
0
2
12.5
25
0
18
2
Bottas
16
0
16
15
0
0
12
15
18
15
0
0.0
15
15
10
Coureur
Hamilton
25
19
25
25
7
0
18
19
12
25
18
7.5
19
0
25
Verstappen
18
25
18
19
25
0
26
25
26
0
2
12.5
25
0
18
Bottas
16
0
16
15
0
0
12
15
18
15
0
0.0
15
15
10
Plot Data

Last updated
Was this helpful?