"on" argument of DataFrame.rolling only works for datetime columns #21687
Labels
Algos
Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff
Docs
Usage Question
Window
rolling, ewma, expanding
Milestone
the
on=
argument ofDataFrame.rolling
only works for datetime columns.returns:
as expected.
But
df.rolling(1, on='roll').value.max()
returns:
If this is intentional behavior, I'd be happy to change the docs to note this (the docs currently imply that
on=
can be used for any column).The text was updated successfully, but these errors were encountered: