I have two panda series, closedDate
and createdDate
, thats elements are pandas timestamps, class 'pandas._libs.tslib.Timestampclass 'pandas._libs.tslib.Timestamp
.
I have subtracted those two panda series to make a list, age
, of pandas timedelta.
closedDate = data.iloc[:,1]
createdDate = data.iloc[:,2]
age = [x-y for x,y in zip(closedDate, createdDate)]
Now, I want to get the average of age
but with my line of code I get an error.
In: average_age = functools.reduce(lambda x, y: x + y, age) / len(age)
Out: OverflowError: int too big to convert
How can I fix this??
Thanks!