SeitaBV / timely-beliefs

Model data as beliefs (at a certain time) about events (at a certain time).
MIT License
34 stars 6 forks source link

Resampling fails if BeliefsDataFrame uses the belief_horizon index level #25

Closed Flix6x closed 4 years ago

Flix6x commented 4 years ago
>>> import timely_beliefs as tb
>>> from datetime import timedelta
>>> df = tb.examples.example_df
>>> df = df.resample_events(timedelta(hours=1))  # works fine
>>> df = df.convert_index_from_belief_time_to_horizon()
>>> df = df.resample_events(timedelta(hours=1))  # fails with KeyError: 'belief_time'