How many rows repeat the pair date + city

pandas · from Duplicates

.duplicated().drop_duplicates()keep=subset=.value_counts()is_unique

Putting the kettle on…

Starting up…

Exercise 4

How many rows repeat the pair date + city? Return the count.

your answer
stuck? the lesson behind it
Duplicates
“Duplicate” is a decision you make, and subset= is where you make it.