Skip to content

Conversation

@agnuspaul98
Copy link
Contributor

What does this PR do?

Adds a short clarification to the user guide explaining the behaviour of
pandas string methods on mixed-type Series.

In particular, it documents that .str methods are applied element-wise
and that non-string values result in NaN rather than raising an error.
An example is included to illustrate this behaviour.

Why is this needed?

This behaviour is intentional but can be surprising to new users.
It commonly leads to confusion when working with mixed-type data,
especially around NaN propagation and output dtypes.

This change improves discoverability and understanding without changing
any existing behaviour.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant