Re: How to adjust pyarrow timestamps using pyarrow.compute

2023-07-21 Thread Felipe Oliveira Carvalho
mangled by ms outlook. > > -Original Message- > From: Lee, David (PAG) > Sent: Friday, July 21, 2023 9:25 AM > To: 'user@arrow.apache.org' > Subject: How to adjust pyarrow timestamps using pyarrow.compute > > I'm having trouble trying to figure out how

RE: How to adjust pyarrow timestamps using pyarrow.compute

2023-07-21 Thread Lee, David (PAG)
Resending.. somehow my code copying and pasting got mangled by ms outlook. -Original Message- From: Lee, David (PAG) Sent: Friday, July 21, 2023 9:25 AM To: 'user@arrow.apache.org' Subject: How to adjust pyarrow timestamps using pyarrow.compute I'm having trouble tryin

How to adjust pyarrow timestamps using pyarrow.compute

2023-07-21 Thread Lee, David (PAG)
I'm having trouble trying to figure out how to adjust a timestamp array by +/- 12 hours.. pyarrow.compute.add() should work, but I can't figure out how it should handle timestamps. import pyarrow.compute as pc _ts = ["9/03/2023 00:35", "9/03/2023 12:35", "9/03/2023 6:35", "9/03/2023 18:35"] _