jorisvandenbossche commented on code in PR #14492:
URL: https://github.com/apache/arrow/pull/14492#discussion_r1006527107
##########
python/pyarrow/tests/test_feather.py:
##########
@@ -838,3 +838,26 @@ def test_preserve_index_pandas(version):
expected = df
_check_pandas_roundtrip(df, expected, version=version)
+
+
[email protected]
+def test_feather_datetime_resolution_arrow_to_pandas(datadir):
+ # ARROW-17192 - ensure timestamp_as_object=True (together with other
+ # **kwargs) can be passed in read_feather to to_pandas.
+
+ # file generated with:
+ # from datetime import datetime
+ # df = pd.DataFrame({"date": [
+ # datetime.fromisoformat("1654-01-01"),
+ # datetime.fromisoformat("1920-01-01"), ],
+ # })
+ # df.to_feather(datadir / "test_resolution.feather")
Review Comment:
Is there a reason to not do this on the fly in the test in a tempdir?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]