Discover more from Daily Dose of Data Science
Stop Analysing Raw Tables. Use Styling Instead!
Jupyter is a web-based IDE. Thus, whenever you print/display a DataFrame in Jupyter, it is rendered using HTML and CSS.
This means you can style your output in many different ways.
To do so, use the Styling API of Pandas. Here, you can make many different modifications to a DataFrame's styler object (𝗱𝗳.𝘀𝘁𝘆𝗹𝗲). As a result, the DataFrame will be displayed with the specified styling.
Styling makes these tables visually appealing. Moreover, it allows for better comprehensibility of data than viewing raw tables.
Read more here: Documentation.
Share this post on LinkedIn: Post Link.
Thanks for reading Daily Dose of Data Science! Subscribe for free to learn something new and insightful about Python and Data Science every day. Also, get a Free Data Science PDF (250+ pages) with 200+ tips.