I had this issue on Databricks with pandas==1.5.3 and SQLAlchemy==2.0.34. Nothing above helped, and for some reason after I included typing_extensions==4.12.2 in requirements.txt everything started working fine.