-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-33321: [Python] Support converting to non-nano datetime64 for pandas >= 2.0 #35656
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
jorisvandenbossche
merged 44 commits into
apache:main
from
danepitkin:danepitkin/arrow-33321-pd-ns
Jul 7, 2023
Merged
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
2b6b8c1
GH-33321: Support converting to non-nano datetime64 for pandas >= 2.0
2a4f19a
Separate implementation for date32 and date64
79f9518
Update types to return non-nano pandas dtypes
042f9e9
Typo in types.pxi
97e514f
Expose coerce_temporal_nanoseconds in PandasOptions for backwards com…
e883534
Maintain pandas dtype conversion for 1.x
d0c3492
Typos
cbd7d69
Fix duration typo, add is_v1() api to pandas shim
dbf7e13
Improve coerce_temporal_nanoseconds documentation
c4d2dd5
Fix typo, update test_pandas.py
5602d52
Fix most tests, revert ARROW-18088
d5022c3
Lint
d43ea6c
Fix test case for pandas 1.0
db5a6d4
Lint C++
4ccc9a5
Fix some dataset tests
8b4c51e
Fix abort
828390b
Add TZ types for s/ms/us, fix abort by adding date64 to ms conversion
3651ecb
date32 converts to ms instead of second
072f190
Lint
348e9fb
Fix pandas 1.0 test
3fe24dd
Refactor tests, add tz to numpy test
778f4cc
Clean up tests, add comments
4329f43
Update python/pyarrow/src/arrow/python/arrow_to_pandas.cc
danepitkin 1e63e3f
Address comments, add tests for coerce_temporal_nanoseconds arg, fix …
db1763f
Lint
f19be39
Fix doctest
c186430
Re-enable test case test_timestamp_to_pandas_out_of_bounds
424f9d0
Lint
80379ac
Templatize DatetimeTZWriter class
f551b3a
Address comments
d9caca7
Fix numpy Day unit regression
690f5b9
Add us, ns sample to existing parquet tests
713cbac
Lint
53cdeb7
Lint c++
c9c9a20
Lint c++ part 2
8696adf
Maintain backwards compatibility for older numpy versions
09d1f71
Coerce to ns in to_pandas_dtype for non-extension types
68a011d
Fail gracefully in _get_pandas_type
f8bb888
Fix pandas v1 to_pandas_dtype()
b8102cf
Fix pandas v1 test
6ffb5e5
Rebase
8509052
small fixes
jorisvandenbossche ed02603
GH-36537: [Python] Ensure dataset writer follows default Parquet vers…
jorisvandenbossche a6487c2
small test clean-up
jorisvandenbossche 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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.