AlenkaF commented on code in PR #14492:
URL: https://github.com/apache/arrow/pull/14492#discussion_r1006737517


##########
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:
   There was a failing test but the issue was in the old version of pandas and 
`.to_feather()`, not in generating the file in the test (as I was mistakenly 
presuming, thanks for the help here!).
   
   I will keep it as it was and use `pyarrow.write_feather` instead.



-- 
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]

Reply via email to