ModuleNotFoundError: No module named 'pandas.core.indexes.numeric' in Streamlit Cloud

If you’re creating a debugging post, please include the following info:

  1. Are you running your app locally or is it deployed?
    It is deployed using GitHUb
  2. If your app is deployed:
    a. Is it deployed on Community Cloud or another hosting platform?
    b. Share the link to the public deployed app.
  3. Share the link to your app’s public GitHub repository (including a requirements file).
  4. Share the full text of the error message (not a screenshot).
  5. Share the Streamlit and Python versions.

Hello @Mukesh_Mishra1,

Here are some steps to troubleshoot:

  1. 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
  1. 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
  1. 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

P.S. Lets connect on LinkedIn!

➤ Want me to build your solution? Lets chat about how I can assist!
➤ Join my Medium community of 30k readers! Sharing my knowledge about data science and AI
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ 100+ FREE Power BI Themes: Download Now

3 Likes