I want to create a bar chart based on the first column in a two-column groupby table. I’ve summed up my dataframe by applying groupby to create the table I want. My groupby table currently only has two columns, the first being the categories, and the second being the count of those categories from my dataframe. I’d like to create
Tag: streamlit
TypeError: Object of type mappingproxy is not JSON serializable
I am having an issue when trying to convert a class object to JSON format. Actually, I have an ECG class object and my expectation is to convert that object to a string in JSON format. Ex: { “Source”: “MIT”, “FileName”: “100”, “Channel”: 2, “Record”: 11520000, “Time”: 1800, “SampleRate”: 500 } ECGModel.py Main.py Processor.py Log: Answer I tried to guess
Streamlit, Python, and Pandas: Duplicate keys and writing
With Python and Streamlit I’m build apps to assist teachers grading essays. In this segment of the app the user is provided with all the student submissions as .txt files. These files are displayed on the main screen, and users scroll down to display additional texts. In a sidebar there are input fields for entering in comments and grades for
Removing the selected items from streamlet’s multiselect
I am trying to delete objects from a list by choosing them via streamlits multiselect widget, having the list entries as entries of the widget. Thus, the list also decides what options are in the multiselect box. However, after the app reruns—once I deleted some options—I get the error: streamlit.errors.StreamlitAPIException: Every Multiselect default value must exist in options Here is
how to fix error “DataFrame object is not callable” in python and streamlit
I have a python code that display dataframe and allow the user to filter the dataframe by creating a new dataframe and allow him to update the requested record using the index number from the selectedbox. For this reason i am using the new feature of streamlit session state where i want the system to preserve the filtered dataframe after
Dropdownmenu in Streamlit without brackets and quotes
I am using streamlit for displaying a dropdown menu based on a csv list (symbols.csv). This is how the csv list looks: This is the code I am writing: And this is how streamlit is displaying the dropdownmenu: I would like to remove those brackets and quotes from the dropdownmenu, I would like to show only in the format “Bitcoin,
Problem with different extension files upload at streamlit
I’m trying to let the user select what files he wants to upload, but I’m facing a problem. For example, there are two types of extension files the user can upload (csv and xlsx). After he upload his file streamlit needs to open the file and shows as a dataframe. But in code I did, I create two if’s to
Streamlit auto populate multiselect widgets to filter dataframe
I have a streamlit app where a user can upload a csv file. I would like streamlit to detect the object/dimension columns and create a multiselect filter for each of them with the unique values inside each of the columns. For example if the user uploads a file with 3 object/dimension, 3 separate multi select filters will be created. I
how to display heatmap color correlation plot in streamlit
I’m trying to do visualization with streamlit.one of the contents I have is correlation like this: But I want it to have color like heatmap plot this is my correlation code thank you in advance! Answer You can write Matplotlib figures in Streamlit. You only have to modify your code slightly:
Plotting spatial data on individual map using altair
I want to plot spatial data on a map. I want to use streamlit because it seems to be easy to use and I want to explore it a bit. First a tried plotting my data with their inbuilt deck_gl-API. This worked pretty good, but since I need to plot glyphs/icons and the IconLayer isn’t built into streamlit yet, I