Hi,
May I ask please, if there is a solution for showing large data frames in a paginated form, e.g. 20 rows at a time, apart from manually implementing this using a slider? I mean something like Jupyter itables: https://github.com/mwouts/itables
I think there’s no way to do it apart from manually implementing this using a num_count or slider, I had added this workaround on one of the posts, you might find it helpful.
Last but not least, if you feel HTML-adventurous, you could build a static paginated MaterialUI Table by editing this solution on the MaterialUI paginated dataframe example
Once dataframe is in order, you can take help of Index (which is default in pandas dataframe) and use query function. Following solution is keeping in mind that you are loading large data in dataframe.
#load large data from database ex
query = “select top 1000000 * from [transaction];”
df = pd.read_sql_query(query, connection)
start = (page_number - 1) * page_size
end = start + page_size #bellow statement will give you back paginated rows.
page = df.query(’(index >= start and index < end )’)
return page
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.