-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: pandas int extension dtypes has no attribute byteorder #57173
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
Changes from 2 commits
7dcbc6a
2d4ec3a
6210ba9
20463c9
024a4c5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -392,3 +392,13 @@ def test_large_string(): | |
result = pd.api.interchange.from_dataframe(df.__dataframe__()) | ||
expected = pd.DataFrame({"a": ["x"]}, dtype="object") | ||
tm.assert_frame_equal(result, expected) | ||
|
||
|
||
@pytest.mark.parametrize("dtype", ["Int8", "Int8[pyarrow]"]) | ||
def test_nullable_integers(dtype: str) -> None: | ||
# https://github.com/pandas-dev/pandas/issues/55069 | ||
pytest.importorskip("pyarrow") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We only need to skip for the second case no? Any reason we don't just use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. because I didn't know you could do that 🙈 |
||
df = pd.DataFrame({"a": [1]}, dtype=dtype) | ||
expected = pd.DataFrame({"a": [1]}, dtype="int8") | ||
result = pd.api.interchange.from_dataframe(df.__dataframe__()) | ||
tm.assert_frame_equal(result, expected) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you check
BaseMaskedDtype
instead?