GCES-Pydemic/pydemic-ui

[BUG] Failure to render graphs in projections_br.py

Aperta

#26 aperta il 10 ott 2020

 (0 commenti) (0 reazioni) (0 assegnatari)Python (0 fork)auto 404
bughelp wanted

Metriche repository

Star
 (0 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Describe the bug When running the file projections_br.py with streamlit, an error occurs saying AttributeError: 'DataFrame' object has no attribute 'get_figure' Perhaps some compatibility error with Pandas plotting feature?

To Reproduce Steps to reproduce the behavior:

  1. Go to pydemic_ui directory root;
  2. execute the command: streamlit run pydemic_ui/apps/app_menu.py
  3. Select option "Brazil Epidemic projections and forecast" image
  4. Scroll down and see the error: image

Expected behavior It is expected to show all available graphs and information without errors.

Desktop (please complete the following information):

  • OS: Linux Mint 19.3 Tricia
  • Browser Mozilla Firefox 75.0 (64-bits)

Additional context Apparently the problem is caused by these lines of code: image

Guida contributor