Discovering Top 5 departments with Highest Total Earnings

The top 5 departments with the highest total earnings, ordered from highest to lowest. Each bar represents a department, and the height of the bar corresponds to the total earnings of that department. The x-axis labels will be the department names, and the y-axis labels will be the total earnings.

So we can conclude that Boston Police Department have highest total earnings.
from this we have learned Data Manipulation: Gained experience in manipulating and cleaning data using pandas, including handling data types and missing values.

Data Aggregation: Learned how to use pandas’ groupby function for aggregating data based on specific criteria.

Data Visualization: Explored data visualization techniques using Seaborn and Matplotlib, creating a visually appealing and informative bar chart.

Exploratory Data Analysis (EDA): Performed exploratory data analysis to quickly analyze and visualize key aspects of the dataset.

Interpretation: Practiced interpreting visualizations to draw insights from data, in this case, identifying the top-performing departments based on total earnings.

Overall, the code demonstrates a typical workflow for loading, cleaning, aggregating, and visualizing data,

Leave a Reply

Your email address will not be published. Required fields are marked *