Skip to content

ERR: better error message with .rolling().apply(func using non-numpy things, raw=True) #38809

Open
@jreback

Description

@jreback

we could use a better error message rather than AttributeError e.g. #38804 (comment)

when using

df.rolling(...).apply(f, raw=True)

when f is using non-numpy functions e.g. .iloc

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementError ReportingIncorrect or improved errors from pandasWindowrolling, ewma, expanding

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions