Closed
Description
import numpy as np
import pandas as pd
s1 = pd.Series(data=pd.date_range("1/1/2020", "2/1/2020"))
s2 = pd.Series(data=pd.date_range("1/1/2021", "2/1/2021"))
s3 = (s1 - s2) / np.timedelta64(1, "M") # pd.Series[float]
error: No overload variant of "__truediv__" of "Series" matches argument type "timedelta64" [operator]
This applies to most arithmetic methods that accept a Timedelta
Metadata
Metadata
Assignees
Labels
No labels