The pandas Styler is cool. However AgGrid is approach cooler. Make your Streamlit dataframes interactive and beautiful.
In my earlier submit, we coated the way to create fairly styled dataframes utilizing the pandas Styler object. On this submit, I need to inform you a couple of second possibility: Streamlit AgGrid. I’ll share the way to construct dataframes just like the one displayed above. After studying this submit you’ll study:
- The important thing parts inside AgGrid. These are
gridOptions()
,configure_column()
,configure_default_column()
, andconfigure_side_bar()
. - The primary choices to allow filtering and aggregating tables utilizing the instantly the UI. No extra constructing ad-hoc queries for easy transformations!
- Making the dataframe prettier with Javascript features. It is possible for you to to repeat paste them in your code in order for you. Or examine my Git repo.
Disclaimer 1: I’ve no affiliation or partnership with AgGrid. I simply discover lots of worth within the open-source product. AgGrid does have a paid tiered product, however the weblog will solely use the free parts of AgGrid.
Disclaimer 2: All photographs and GIFs are authored on my own except specified in any other case.