import streamlit as st import streamlit.components.v1 as components css_file = './resources/style.css' @st.cache_data def load_css(): with open(css_file) as f: return f'' def top10(df_data): html = load_css() html+="""
""" for index, row in df_data.iterrows(): html += '' html += '' html += '' elif (row.Variacao < 0): html += '' else: html += '' html+="""
' + str(row.Posicao_Atual) +''+row.Musica+''+row.Artista+'' if (row.Variacao > 0): html += '▲ ' + str(row.Variacao) + '
▼ ' + str(row.Variacao * -1) + '
■ 0
""" return components.html(html, height=600, width=650)