Skip to content

Flags rule PD011 but it is not correct #13495

@santi-mir

Description

@santi-mir
a = list()
a.values

Use .to_numpy() instead of .values

  • It will always happen in cases where a is a class that happens to have values property.

Maybe as a first fix it can check for the pandas module, I'm not using it, just as in the snippet above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions