Skip to content

PD011 should recommend .array as well #24804

Closed

Description

@flying-sheep

Summary

The pandas docs say

Warning

We recommend using Series.array or Series.to_numpy(), depending on whether you need a reference to the underlying data or a NumPy array.

PD011 only mentions .to_numpy(), but should also mention both.

Version

0.15.11

Activity

  1. added
    diagnostics
    on Apr 23, 2026
  2. added a commit that references this issue on Apr 23, 2026
    df3988d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    diagnostics

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions