Skip to content

improvement: support pandas 3.0 str col#8146

Merged
mscolnick merged 2 commits intomainfrom
ms/pandas-3.0-str
Feb 5, 2026
Merged

improvement: support pandas 3.0 str col#8146
mscolnick merged 2 commits intomainfrom
ms/pandas-3.0-str

Conversation

@mscolnick
Copy link
Contributor

@mscolnick mscolnick commented Feb 5, 2026

Closes #8093

Pandas 3.0 added a new str column so this adds support for that when mapping to their unified value type.

@vercel
Copy link

vercel bot commented Feb 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment Feb 5, 2026 7:57pm

Request Review

Light2Dark
Light2Dark previously approved these changes Feb 5, 2026
@@ -366,6 +366,8 @@ def _map_dtype_to_field_type(
return ("string", dtype)
if lower_dtype == "string":
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if lower_dtype == "string":
if lower_dtype == "string" or lower_dtype == "str":

Comment on lines +369 to +370
if lower_dtype == "str":
return ("string", dtype)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if lower_dtype == "str":
return ("string", dtype)

@mscolnick mscolnick added the bug Something isn't working label Feb 5, 2026
@mscolnick mscolnick merged commit b5272cb into main Feb 5, 2026
48 of 67 checks passed
@mscolnick mscolnick deleted the ms/pandas-3.0-str branch February 5, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pandas v3 issues

2 participants