Py.Cafe

convertedfox/

streamlit-on-pycafe-demo

Streamlit on Py.cafe Demo

DocsPricing
  • app.py
  • requirements.txt
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import pandas as pd
import streamlit as st
import plotly.express as px

def main():
    st.title('CSV Analyzer')
    
    uploaded_file = st.file_uploader("CSV hochladen", type=['csv'])
    
    if uploaded_file:
        df = pd.read_csv(uploaded_file)
        fig = px.line(df, x=df.columns[0], y=df.columns[1])
        st.plotly_chart(fig)

if __name__ == '__main__':
    main()