Json-to-Csv / app.py
anirudh06's picture
Update app.py
8731812
raw
history blame contribute delete
381 Bytes
import pandas as pd
import streamlit as st
uploaded_file = st.file_uploader("Choose a JSon file: ", type="json")
if uploaded_file is not None:
df=pd.read_json(uploaded_file)
Csv_filr=df.to_csv(index=False).encode()
st.download_button(
label="Download the csv file",
data='csv_file',
file_name='converted_file.csv',
mime='csv',
)