Prepare data for bar chart races
masterTo create a bar chart race, your data must be in a 'wide' format within a pandas DataFrame:
- Rows: Represent a single period of time.
- Columns: Each column holds the value for a particular category.
- Index: Contains the time component (optional).
Example structure: A DataFrame where the index is a date, columns are country names, and values are death counts.