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+="""
| ' + str(row.Posicao_Atual) +' | ' html += ''+row.Musica+' | ' html += ''+row.Artista+'' if (row.Variacao > 0): html += ' | ▲ ' + str(row.Variacao) + ' | ▼ ' + str(row.Variacao * -1) + ' | ' else: html += '■ 0 | ' html+="""