I want to read some spectral data to my streamlit application. Each row in the file is a spectrum (different intensity values). So, I used st.fileuploader
spectra = st.file_uploader("upload file", type={"csv", "txt"})
spectra = pd.DataFrame(spectra_1_file)
st.write(spectra_1)
Now, I am getting only one row of data on each column I have each spectrum as comma-separated. I need to convert the input from the user to a similar fashion of pd.csv_read. Because, when I was using it, I was able to get a proper pandas data frame. I tried different methods to read. But, never got the proper way. this was the closest I could get.
Thank you in advance.
read_csvto read csv data and convert it into dataframe