-
-
Notifications
You must be signed in to change notification settings - Fork 27
ENH: support for reading and writing datetimes with timezones #253
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
Merged
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
e075091
minimal working pandas layer without timezones
m-richards 3df7936
implement datetime_as_string toggle to get numpy layer working
m-richards d68b473
make tests pass
m-richards 9aa5a8c
add tests showing existing behaviour no tz
m-richards 1a2af4d
working read
m-richards fbd2898
commit my test file
m-richards 127d0a7
actually fix tests with read working
m-richards 016778a
good enough wip progress for now
m-richards faa0631
make these failures easier to read
m-richards a8c200e
fix for non tz
m-richards 6047375
fix some tests
m-richards 6061563
run pre commit
m-richards 3ba42cf
maybe old pandas, can't reproduce locally
m-richards d983140
try and find something pandas 1.5 also happy with
m-richards e9993bd
lint
m-richards b6ca5cf
simple answer
m-richards 05cc1cf
cleanup
m-richards a78a76c
wip, use strings to make multi timezones round trip
m-richards b681656
use tmp path fixture
m-richards 3426fdc
cleanups
m-richards bb6fd4e
try cleanup datetime parsing
m-richards 87419ac
more cleanup, realise we can get dt resolution
m-richards fc78bd9
more careful pandas 1.5 compat
m-richards 5fab348
delete line
m-richards 26c403a
replace write support with working datetime object solution
m-richards ebdb71b
fixes
m-richards f46e716
rewrite datetime reading to handle mixed offset to utc
m-richards 44686f9
fix nat handling for datetime as string
m-richards 6b946f5
don't expose datetime_as_string in pandas layer
m-richards ec16ed3
incorrect variable in 1.5.3 compat
m-richards da0639a
CLN: tidy up pandas 2.0 compat
m-richards 85a67c2
suggested alternative implementation
m-richards d96d67e
code review suggestion
m-richards 3eb70dc
Update pyogrio/tests/test_geopandas_io.py
m-richards c37c1ed
Merge remote-tracking branch 'upstream/main' into matt/timezones_redo
m-richards 4064f25
Merge branches 'matt/timezones_redo' and 'matt/timezones_redo' of git…
m-richards 3df12c0
time tests and suggestions
m-richards 8fd30a5
remove breakpoint
m-richards 55293c0
catch warning
m-richards 8040c21
really need to fix my local gdal
m-richards fccc8fb
fix fix
m-richards 200cc1d
Apply suggestions from code review
m-richards ebfc01c
add suggested exception handling
m-richards c8c186a
move pandas compat to _compat
m-richards 95030c0
address review comments
m-richards c5c272b
Merge remote-tracking branch 'upstream/main' into matt/timezones_redo
m-richards 086e52e
update known issues
m-richards 2b2dd5f
reword
m-richards 2167d0f
move documentation
m-richards ab0fbf6
rename field as suggested
m-richards e3f4d6a
Merge remote-tracking branch 'upstream/main' into matt/timezones_redo
m-richards 0f02115
final missing gdal tz offset change
m-richards 52a922d
Update pyogrio/tests/test_geopandas_io.py
m-richards 7c99e51
Apply suggestions from code review
m-richards a5f5f9d
add changelog entry
brendan-ward 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,4 +66,4 @@ jobs: | |
|
||
- name: Test | ||
run: | | ||
pytest -v -r s pyogrio/tests | ||
pytest -v --color=yes -r s pyogrio/tests |
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.