8000 DOC: add pandas 3.0 migration guide for the string dtype by jorisvandenbossche · Pull Request #61705 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

DOC: add pandas 3.0 migration guide for the string dtype #61705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prev Previous commit
Next Next commit
fix underling length
  • Loading branch information
jorisvandenbossche committed Jun 27, 2025
commit e4a764de1ed33a5fea6f265efc86270cf1015c91
8 changes: 4 additions & 4 deletions doc/source/user_guide/migration-3-strings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ for more background and details.
.. - setitem raises an error for non-string data
Copy link
Member

Choose a reason for hiding this comment

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

the above is not rendered?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, this are comments, it was my outline when writing it (can remove this in the end)

Copy link
Member

Choose a reason for hiding this comment

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

no problem.


Brief introduction to the new default string dtype
-------------------------------------------
--------------------------------------------------

By default, pandas will infer this new string dtype instead of object dtype for
string data (when creating pandas objects, such as in constructors or IO
Expand Down Expand Up @@ -121,9 +121,9 @@ Overview of behavior differences and how to address them
The dtype is no longer object dtype
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

When inferring or reading string data, the data type of the resulting DataFrame column or
Series will silently start being the new ``"str"`` dtype instead of ``"object"``
dtype, and this can have some impact on your code.
When inferring or reading string data, the data type of the resulting DataFrame
column or Series will silently start being the new ``"str"`` dtype instead of
``"object"`` dtype, and this can have some impact on your code.

Checking the dtype
^^^^^^^^^^^^^^^^^^
Expand Down
Loading
0