Programming, problem solving, and algorithms

CPSC 203, 2025 W1

October 14, 2025

Announcements

Today

Exploring pandas:

  • Asking harder questions

Today’s challenge…

Given a year of charts,

  • what do the paths of the number ones look like?

  • Do most songs debut at the top? How fast do they fall?

We can quantify these things, and analyze them, but a picture will help us see if there’s anything interesting in the data.

Let’s Write Code

Open CA5.2 Billboard, and load classmult_nb.py.

PrairieLearn Activity

Resources

https://pymotw.com/2/datetime/

https://www.dataschool.io/best-python-pandas-resources/

https://pandas.pydata.org/Pandas_Cheat_Sheet.pdf

https://queirozf.com/entries/pandas-dataframe-plot-examples-with-matplotlib-pyplot