Hej,
My time format of my datetime object is like this %M:%S.%f but python apparently does not identify it as so. I have this problem with multiple columns which I want to use for visualisation
data example:
0 7:42.3
1 7:51.9
2 7:48.3
3 7:44.2
4 8:01.7
...
111 8:55.5
112 8:17.9
113 8:41.1
114 NaN
115 NaN
Name: CRS1, Length: 116, dtype: object
Tried this without success:
t = pd.to_datetime(df["CRS1"], format='%M:%S.%f')
In seaborn I can plot the data if time is plotted against rank but not if i switch variables around..iE. Athletes Name and Finish time -> TypeError: Neither the x
nor y
variable appears to be numeric.
Quite new to python, so would appreciate a good explanation to deal with this format. /Thanks!