Insights / data_loader.py
shrutisd1003's picture
null values handled
577321a
raw
history blame
481 Bytes
import streamlit as st
import pandas as pd
class DataLoader:
def __init__(self):
pass
@st.cache_data(experimental_allow_widgets=True)
def load_data(_,uploaded_file):
if True:
data = pd.DataFrame()
if uploaded_file is not None:
data = pd.read_csv(uploaded_file)
data.to_csv('./original_data.csv', index=False)
data.to_csv('./data.csv',index=False)
return True