Description
AttributeError: partially initialized module 'pandas' has no attribute '_pandas_datetime_CAPI' (most likely due to a circular import)
The above error appears in multiple tests with Python 3.10.
Python 3.11, 3.12 and pypy3 don't have the issue.
See https://github.com/apache/spark/actions/runs/8469356110/job/23208894575 for details.