jorisvandenbossche commented on issue #9172:
URL: https://github.com/apache/arrow/issues/9172#issuecomment-766877382


   Can you provide a reproducible example?
   
   The following small example works for me:
   
   ```
   In [43]: df = pd.DataFrame({"a": pd.date_range("2012-01-01", periods=10, 
freq="D")})
   
   In [44]: df.to_parquet("test_filter_datetimes.parquet")
   
   In [45]: import pyarrow.parquet as pq
   
   In [46]: pq.read_table("test_filter_datetimes.parquet").to_pandas()
   Out[46]: 
              a
   0 2012-01-01
   1 2012-01-02
   2 2012-01-03
   3 2012-01-04
   4 2012-01-05
   5 2012-01-06
   6 2012-01-07
   7 2012-01-08
   8 2012-01-09
   9 2012-01-10
   
   In [47]: pq.read_table("test_filter_datetimes.parquet", filters=[("a", ">", 
pd.Timestamp("2012-01-05"))]).to_pandas()
   Out[47]: 
              a
   0 2012-01-06
   1 2012-01-07
   2 2012-01-08
   3 2012-01-09
   4 2012-01-10
   ```


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to