A colleague recently commented on a report that I generated that it would be way more user-friendly to make the tables interactive. Sigh. Of course, he is right. When you come across big tables, most people will just scroll right past – even if they are interested in the content. It is just too much trouble to digest.
Based on his suggestion, I went on a search for HTML or JavaScript tools that might help me do something like that. What I stumbled upon has been super useful not just for reports, but just about every Jupyter script I write.
It is the itables module for Python and pandas. By just adding a few lines of code, in every dataframe you display, column names can be clicked to sort them, tables can be broken in to pages, and an awesome search bar is provided to make filtering on the fly a snap.