Ensure that the version of pandas you are using locally matches the one specified in your requirements.txt file. You can check your local version by running:
pip show pandas
If you haven’t specified a version for pandas in your requirements.txt , it’s a good practice to do so. This ensures the same version is used during deployment. Specify the version like so:
pandas==x.y.z
Compatibility between your Streamlit version, Python version, and pandas could also be an issue. Make sure to specify compatible versions in your requirements.txt file. For example:
streamlit==x.y.z
python-x.y.z
Hope this helps!
Kind Regards,
Sahir Maharaj
Data Scientist | AI Engineer