How can I get next button to display only limited rows of a dataframe and then have next buttton

Hi @Vinishag ,

It is possible to do the use case you mentioned above. I have demonstrated the same in this git repo. Basically using session state hack as mentioned by @andfanilo in the attached post works seamlessly to enable this usecase as shown below.

streamlit-display_df-2021-02-04-17-02-21

I have used the mpg cars dataset for just demo purposes, which could be found on kaggle here

Thanks & Hope this helps :slight_smile: !

1 Like