Skip to content

DOC: DeprecationWarning on "Intro to data structures" user guide #60490

@yavuz-guclu

Description

@yavuz-guclu

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://pandas.pydata.org/docs/user_guide/dsintro.html

Documentation problem

I got warning at In [48]: data = np.zeros((2,), dtype=[("A", "i4"), ("B", "f4"), ("C", "a10")]). Warning is

"DeprecationWarning: Data type alias 'a' was deprecated in NumPy 2.0. Use the 'S' alias instead."

Suggested fix for documentation

Following the warning's instructions, I changed ("C","a10") to ("C","S10"), and the warning resolved.

Metadata

Metadata

Assignees

Labels

DocsNeeds TriageIssue that has not been reviewed by a pandas team member

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions