Py.Cafe

kolibril13/

pandas

Coffee Beans Dashboard using Solara

DocsPricing
  • app.py
  • requirements.txt
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import solara
import pandas as pd

data = {
    'Bean_Name': ['Arabica Bliss', 
                  'Robusta Strength', 
                  'Liberica Delight'],
    'Sweetness_Level': [8, 5, 3],  
    'Roast_Level': [5, 8, 3]   
}

df = pd.DataFrame(data)
df['Region'] = ['Ethiopia', 'Vietnam', 'Philippines']

@solara.component
def Page():
    solara.DataFrame(df)

Page()