BUG/ENH: timedelta fillna should work intuitively #3371
Labels
Bug
Dtype Conversions
Unexpected or buggy dtype conversions
Enhancement
Groupby
Timedelta
Timedelta data type
Milestone
http://stackoverflow.com/questions/16023584/pandas-time-delta-from-grouped-neighbors
setup
this should probably work? (fill in a 0 timedelta)
grouped.apply(lambda g: g['DATE']-g['DATE'].shift()).fillna(0)
this is returning
timedelta64[us]
, weird numpy error againThis DOES work
This DOES NOT WORK, (need to use a view of i8 first)
The text was updated successfully, but these errors were encountered: