The following ValueError arises in the EKF tutorial -
ValueError: Cannot convert from timedelta64[ns] to timedelta64[D]. Supported resolutions are 's', 'ms', 'us', 'ns'.
This is due to the following line in the code to download the data -
(data["Timestamp"] - origin_date).astype("timedelta64[D]").astype(int)
This is fixed by instead using
(data["Timestamp"] - origin_date).dt.days.astype(int)
The following ValueError arises in the EKF tutorial - ValueError: Cannot convert from timedelta64[ns] to timedelta64[D]. Supported resolutions are 's', 'ms', 'us', 'ns'.
This is due to the following line in the code to download the data - (data["Timestamp"] - origin_date).astype("timedelta64[D]").astype(int)
This is fixed by instead using (data["Timestamp"] - origin_date).dt.days.astype(int)
Solution obtained from - https://stackoverflow.com/questions/76363921/how-to-fix-pandas-v2-valueerror-cannot-convert-from-timedelta64ns-to-timedel