How to apply filter to filter data from pandas dataframe and build heat map

Hi All,

I am new to Streamlit and trying to create a heat map. User selection in filter will do the following:

  1. filter the Pandas dataframe depending on user selection such as country etc.
  2. user can select the measure which will be shown in heat map

I also need to show the Total of each column and row.

So ideally it is a table with column and row total and heat on basis of the measure.

Thanks

Hi All,

I am able to do everything except showing the Row and Column Totals, will appreciate any help here.

Thanks.

Hi @Ankit_Mani_Tripathi, can you share the code you have so far? It sounds like this is probably more of a pandas question than a streamlit question, and you might have more success looking around for pandas documentation related to heat maps.