Using file_uploader with bzip2 encoded file

Hello streamlit community. I’m having issues using the uploader to read in .json.bz2 encoded files which normally I can read easily using pandas (eg pd.read_json). Any tips or advice?

Welp figured it out myself:

file = st.file_uploader(label='File')
orig = pd.read_json(file, compression='bz2', lines=True)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.