MNT: Adapt for pandas 1.0.0 (bug workaround + two depr warnings)

This commit is contained in:
Kernc
2020-02-21 03:38:05 +01:00
parent d08524904d
commit 5387d86dd9
3 changed files with 3 additions and 5 deletions

View File

@@ -209,6 +209,7 @@ def resample_apply(rule: str,
'or a `Strategy.data.*` array'
series = series.to_series()
series = series.copy() # XXX: pandas 1.0.1 bug https://github.com/pandas-dev/pandas/issues/31710
resampled = series.resample(rule, label='right').agg(agg).dropna()
resampled.name = _as_str(series) + '[' + rule + ']'