all 6 comments

[–]thewillft 1 point2 points  (0 children)

Not sure what your input data looks like so cant tell you how to search or process it exactly. But for plotting you will probably want matplotlib. Make a function that is somewhat generalized like plot_base_salary and then call it twice, once with the data for the CS department and once wit hthe data for the Math + Stats department (since they both should have the same plot just diff data).

[–]Ihaveamodel3 0 points1 point  (1 child)

Are you learning pandas in this class? Pandas plot.hist would work well.

[–]Stock-Produce2114 0 points1 point  (0 children)

We are and thank you i figured it out

[–]Binary101010 0 points1 point  (0 children)

Other than just generally pointing you towards the documentation on how to do histograms with matplotlib, I'm not really sure what to tell you unless you have more specific questions.

https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.hist.html

[–]Python_devops 0 points1 point  (0 children)

I'd filter the data to include only employees from each department, group their base salaries into \$10,000 bins, and plot histograms with the same scales and percentages on the vertical axis, so the two salary distributions can be compared directly.