GCES-Pydemic/pydemic-ui

[BUG] Failure to render graphs in projections_br.py

Open

#26 opened on Oct 10, 2020

 (0 comments) (0 reactions) (0 assignees)Python (0 forks)auto 404
bughelp wanted

Repository metrics

Stars
 (0 stars)
PR merge metrics
 (PR metrics pending)

Description

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

Contributor guide