Skip to content

DOC: clarify object-dtype ndarray inference in Index and Series#65032

Open
sdejhgfu wants to merge 2 commits intopandas-dev:mainfrom
sdejhgfu:doc-64844-object-ndarray-inference
Open

DOC: clarify object-dtype ndarray inference in Index and Series#65032
sdejhgfu wants to merge 2 commits intopandas-dev:mainfrom
sdejhgfu:doc-64844-object-ndarray-inference

Conversation

@sdejhgfu
Copy link
Copy Markdown

@sdejhgfu sdejhgfu commented Apr 2, 2026

Summary

  • Document that NumPy object-dtype arrays passed to Index / Series may be inferred to a more specific pandas dtype (same idea as list inputs).
  • Note that using dtype=object preserves object dtype.

Details

Document that NumPy object-dtype arrays may be inferred to a more specific
pandas dtype (as with list inputs), and that dtype=object preserves object
dtype. Cross-reference Index and Series constructors (GH#64844).

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: numpy array type is not being respected in Index constructor

2 participants