kasravisia commited on
Commit
355638c
1 Parent(s): a88ad54

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import pandas as pd
2
+ import streamlit as st
3
+ from mitosheet.streamlit.v1 import spreadsheet
4
+
5
+ # Create a dataframe with pandas (you can pass any pandas dataframe)
6
+ dataframe = pd.read_csv("woo.csv")
7
+
8
+ # Display the dataframe in a Mito spreadsheet
9
+ final_dfs, code = spreadsheet(dataframe)
10
+
11
+ # Display the final dataframes created by editing the Mito component
12
+ # This is a dictionary from dataframe name -> dataframe
13
+ st.write(final_dfs)