resgroup/wind-up

Timestamp column can be converted to type "object" which potentially causes the `.diff()` to fail

Closed this issue · 0 comments

diffdf = df.groupby("TurbineName", observed=False).ffill().fillna(0).diff()

Example error when the .diff() is run: TypeError: unsupported operand type(s) for -: 'int' and 'Timestamp'