Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Int64 series resampling #25580
Code Sample, a copy-pastable example if possible
>>> import pandas as pd >>> index = pd.date_range('1/1/2000', periods=9, freq='T') >>> series = pd.Series(range(9), index=index, dtype='Int64') >>> series.resample('3T').sum() AttributeError: 'IntegerArray' object has no attribute 'size'
Pandas series with an Int64 dtype can not be resampled, instead raising an AttributeError because they have no size method. If the series is accessed as part of a DataFrame, e.g. 'df.resample('3T').series.mean()', it is successful.
def size(self): return self._data.size()
2000-01-01 00:00:00 1