AlenkaF commented on issue #46301: URL: https://github.com/apache/arrow/issues/46301#issuecomment-2853457978
I'm not entirely sure what the expected behavior should be in this case, but it might make sense to align it with how similar operations work in pandas—for example, [pandas.Series.dt.floor](https://pandas.pydata.org/docs/reference/api/pandas.Series.dt.floor.html). Note that the week unit behaves similarly (there may be other units as well; a parameterized test could help reveal this): ```python >>> s = pa.scalar(datetime(1970, 1, 1), type=pa.timestamp('ns')) >>> print(pc.floor_temporal(s, 1, 'week')) 1969-12-29 00:00:00 ``` -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org