-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: Add tests to ensure proper conversion of datetime64/timedelta64/timestamp/duration to and from pyarrow #54356
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
Merged
mroeschke
merged 16 commits into
pandas-dev:main
from
Julian048:add-pyarrow-conversion-tests
Aug 9, 2023
Merged
Changes from 9 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
7fe4d10
add pyarrow conversion pytests
Julian048 eca3b3f
make test match GH issue and move test to proper location
Julian048 8a1a5be
fix naming of expected and result variables for assertion
Julian048 eecb330
optimize test
Julian048 dcfee47
Merge branch 'main' into add-pyarrow-conversion-tests
Julian048 c67a899
Merge branch 'main' of https://github.com/pandas-dev/pandas into add-…
Julian048 3f0e816
Merge branch 'add-pyarrow-conversion-tests' of https://github.com/Jul…
Julian048 d8ba4d2
Merge branch 'main' into add-pyarrow-conversion-tests
Julian048 f8e893d
Merge branch 'main' into add-pyarrow-conversion-tests
Julian048 28e2954
make test mirror GH #54191
Julian048 e9b6b90
Merge branch 'add-pyarrow-conversion-tests' of https://github.com/Jul…
Julian048 035935a
Merge branch 'main' into add-pyarrow-conversion-tests
Julian048 2960eb6
fix test logic
Julian048 9b0c833
Merge branch 'pandas-dev:main' into add-pyarrow-conversion-tests
Julian048 009808c
Merge branch 'main' of https://github.com/Julian048/pandas into add-p…
Julian048 9fc2082
Merge branch 'add-pyarrow-conversion-tests' of https://github.com/Jul…
Julian048 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 you mirror the exact code snippet in #54191 (comment)?
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 what you're referencing right?
s = pd.Series(pd.date_range("2020-01-01", "2020-01-02", freq="1min"))
s = s.astype("timestamp[ms][pyarrow]")
t = s.convert_dtypes(dtype_backend="pyarrow")
pd.testing.assert_series_equal(s, t)
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.
Correct