raulcd commented on PR #48619:
URL: https://github.com/apache/arrow/pull/48619#issuecomment-3723173840
Thanks for checking that @AlenkaF ! So currently we are providing a snippet
on our documentation:
```
.. ipython:: python
:okexcept:
import datetime
current_year = datetime.datetime.now(datetime.UTC).year
for table_chunk in birthdays_dataset.to_batches():
print("AGES", pc.subtract(current_year, table_chunk["years"]))
```
that will fail for some users as we are still supporting Python 3.10, right?
Is it worth for the example to add the `datetime.UTC`? Should we just use for
the example: `current_year = datetime.datetime.now().year`
Or maybe add a comment with a note?
I am ok to just bump the Python version of the job but we probably should
not provide examples that will fail on some of the supported versions.
--
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]