This Python code reads in data from a CSV file and filters it to keep only relevant rows. It then pivots the DataFrame to put the years in columns, and plots the data using a bar chart.
pandas
matplotlib
- Install the required libraries using pip:
pip install pandas matplotlib
, orpip install -r requirements.txt
- Save the
income_data.csv
file in the same directory as the Python code. - Run the code using your preferred Python environment.
This code is released under the MIT License.