Ask the community or our support engineers for answers to questions.
combined_summary_df is a multiindex dataframe
> data_to_graph = combined_summary_df.unstack(level=1, fill_value=0)
>
> with st.expander("Where to test everything related to graph"):
> st.write(data_to_graph)
I am new to Streamlit. I would like to impress my superior with it. Any help, Please!!!
This error has been returned everytime I used the chunk of code above to display my dataframe in Streamlit:
SyntaxError: Unexpected token s in JSON at position 6
at JSON.parse (<anonymous>)
at http://localhost:8501/static/js/main.970d3503.chunk.js:2:17823
at Array.map (<anonymous>)
at Function.value (http://localhost:8501/static/js/main.970d3503.chunk.js:2:17792)
at new e (http://localhost:8501/static/js/main.970d3503.chunk.js:2:10780)
at e.get (http://localhost:8501/static/js/main.970d3503.chunk.js:2:428662)
at sn (http://localhost:8501/static/js/main.970d3503.chunk.js:2:461308)
at ia (http://localhost:8501/static/js/5.26b8f29c.chunk.js:2:3245026)
at Gl (http://localhost:8501/static/js/5.26b8f29c.chunk.js:2:3297484)
at Pc (http://localhost:8501/static/js/5.26b8f29c.chunk.js:2:3284658)
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.