-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: Interchange implementation for timestamp[ns][pyarrow] #57026
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
Conversation
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.
thanks for your PR!
result["col0"] = result["col0"].astype("timestamp[ns][pyarrow]") | ||
tm.assert_frame_equal(df, result) |
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.
can we check the result explicitly please?
like
result = pd.api.interchange.from_dataframe(dfi)['col0'].item()
expected = pd.Timestamp(...)
assert result == expected
, fill in Timestamp
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.
this is failing CI
FAILED pandas/tests/interchange/test_impl.py::test_timestamp_ns_pyarrow - NameError: name 'pa' is not defined
Hi, thanks for pointing out, I added the necessary |
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.
thanks @aidoskanapyanov (CI failure is unrelated)
…v#57026) * TST: Interchange implementation for timestamp[ns][pyarrow] * Check timestamp explicitly * Use pytest.importorskip --------- Co-authored-by: Marco Edward Gorelli <[email protected]>
timestamp[ns][pyarrow]
type correctly #56712doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.