Skip to content
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

BUG (string dtype): fix handling of string dtype in interchange protocol #60333

Merged
merged 4 commits into from
Nov 17, 2024

Conversation

WillAyd
Copy link
Member

@WillAyd WillAyd commented Nov 15, 2024

No description provided.

@jorisvandenbossche jorisvandenbossche changed the title TST (string dtype): resolve xfails in interchange BUG (string dtype): fix handling of string dtype in interchange protocol Nov 16, 2024
Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

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

(this should fix the test failure I think)

@@ -410,7 +407,6 @@ def test_empty_string_column():
tm.assert_frame_equal(df, result)


@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)")
def test_large_string():
# GH#56702
pytest.importorskip("pyarrow")
Copy link
Member

Choose a reason for hiding this comment

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

Just below here (can't comment on the line), we still hardcode to object dtype, that should be

expected = pd.DataFrame({"a": ["x"]}, dtype="str")

@jorisvandenbossche jorisvandenbossche added Strings String extension data type and string data Interchange Dataframe Interchange Protocol labels Nov 16, 2024
@jorisvandenbossche jorisvandenbossche added this to the 2.3 milestone Nov 16, 2024
@jorisvandenbossche jorisvandenbossche merged commit 720a6e7 into pandas-dev:main Nov 17, 2024
51 checks passed
@jorisvandenbossche
Copy link
Member

Thanks!

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Nov 17, 2024
jorisvandenbossche pushed a commit that referenced this pull request Nov 17, 2024
…of string dtype in interchange protocol) (#60347)

Backport PR #60333: BUG (string dtype): fix handling of string dtype in interchange protocol

Co-authored-by: William Ayd <[email protected]>
@WillAyd WillAyd deleted the fix-interchange-strings branch November 17, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Interchange Dataframe Interchange Protocol Strings String extension data type and string data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants