This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import dash_ag_grid as dag | |
| from dash import Dash, html, dcc, Input, Output, callback | |
| import pandas as pd | |
| app = Dash() | |
| # adapted from https://dash.plotly.com/dash-ag-grid/text-filters#text-matcher | |
| df = pd.read_csv( | |
| "https://raw.githubusercontent.com/plotly/datasets/master/ag-grid/olympic-winners.csv" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import streamlit as st | |
| import pandas as pd | |
| import numpy as np | |
| import plotly.express as px | |
| from dash_bootstrap_templates import load_figure_template | |
| # I was too lazy to configure the charts individually, and this dash library served very well :) | |
| load_figure_template('minty') | |
| st.set_page_config(layout="wide") | |
| # ========== Data Preparation ========== # | |
| @st.cache(allow_output_mutation=True) |