Hierarchical Data is a data model in which elements are linked to each other in parent-child relationships, forming a tree structure. Some obvious examples are family trees and corporate organization charts.
TO tree map is a diagram that represents hierarchical data using nested rectangles. The area of each rectangle corresponds to its numerical value. Treemaps have been around for about 30 years. One of the first applications was to visualize hard drive usage, as demonstrated in the following figure.
Tree maps allow you to capture both the worth of individual categories and the structure of the hierarchy. They are useful for:
- Show hierarchical data when the number of categories overwhelms a bar chart.
- Highlight the proportions between individual categories and the whole.
- Distinguish categories using different sizes and colors.
- Detect patterns, major contributors, and outliers.
- Bringing a new look to data visualization.
In this Fast Win Data Science project, we will use Python to create a tree map to help people budget expenses. First we will use the tabula-py library to convert a website Bureau of Labor Statistics PDF in a pandas DataFrame. Then we will use the Tramamente express library to convert the DataFrame into an attractive and interactive area-based visualization.
With the pandemic and subsequent inflationary surge, consumer spending has drawn a lot of attention. Individuals need to know how to budget effectively and policymakers need to understand which sectors are causing the greatest financial burden on potential voters.
To help track income and expenses, the Census Bureau applications Consumer spending surveys to collect information on the spending, income, and demographic characteristics of American consumers. He Bureau of Labor Statistics (BLS) then compile these statistics into annual…