Skip to content

Conversation

@jorisvandenbossche
Copy link
Member

@jorisvandenbossche jorisvandenbossche commented Nov 26, 2025

See #63099 for context.

This reverts the behaviour change of #61925 partially, to at least ensure that .array and .values still returns the underlying ExtensionArray (if the Series is backed by an extension dtype). Other ways to get a numpy array are still left to return a read-only ndarray for now.

@mroeschke mroeschke mentioned this pull request Nov 26, 2025
@jorisvandenbossche jorisvandenbossche marked this pull request as ready for review December 1, 2025 13:19
array._readonly = True
# TODO decide on read-only https://github.com/pandas-dev/pandas/issues/63099
# array = array.view()
# array._readonly = True
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the idea to leave this commented-out indefinitely? or will be cleaned up before merging?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id prefer to remove but not going to make a stink about it. merge on green(ish)

@jbrockmendel jbrockmendel merged commit ded274a into pandas-dev:main Dec 2, 2025
93 of 103 checks passed
@jbrockmendel
Copy link
Member

thanks @jorisvandenbossche

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants