File size: 787 Bytes
f66054f
 
1b00c1b
f66054f
fcdfb36
 
1b00c1b
 
fcdfb36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1b00c1b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import streamlit as st
import pandas as pd
import pandas_profiling

# make all screen 100% width
st.set_page_config(layout='wide')
# set theme to light


col1, col2, col3 = st.columns([15, 70, 15])

with col1:
    st.write('')
with col2:
    st.header('Machine Learning App')
    st.subheader('Upload your CSV data')
    input_file = st.file_uploader('Upload your CSV file', type=['csv'])
    if input_file is not None:
        df = pd.read_csv(input_file)
        df_original = df.copy()
        st.dataframe(df.head())
        if 'df' not in st.session_state:
            st.session_state.df = df
            st.session_state.df_original = df_original
        st.success('File uploaded successfully')
    else:
        st.warning('Please upload a CSV file')
with col3:
    st.write('')