Replies: 1 comment
-
You do not need to merge the dataframes. Just call the As in:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm following the example on the fastf1 website where they plot the laptimes of a driver.
https://docs.fastf1.dev/examples_gallery/plot_driver_laptimes.html#sphx-glr-examples-gallery-plot-driver-laptimes-py
I want to modify this to plot two driver laptimes into one scatter plot (effectively comparing them)
I have this code:
but I'm getting the error, " raise ValueError("cannot reindex on an axis with duplicate labels")"
I understand that by combining two lap dataframe into one, I get duplicated indexes, but how can I solve this issue without deleting duplicates (which will erase the info I need)?
Thanks in advance for any help
Beta Was this translation helpful? Give feedback.
All reactions