How would I go about this in Python Pandas? Would I use Groupby for question 2? I don't want a answer in code, just pseudocode or explanation of operations would be fine.
Dataset 1
CITY POPULATION
BOSTON 645,966
NEW YORK 8,336,697
CHICAGO 2,714,856
Dataset 2
Newspaper City Readers
Boston Globe Boston, MA 245572
New York Times New York, NY 1865318
Daily News New York, NY 516165
New York Post New York, NY 500521
Chicago Sun-Times Chicago, IL 470548
Chicago Tribune Chicago, IL 414930
List the operations (in order) to modify each value in the ‘City’ attribute in Dataset 2 so that it can be directly compared to the ‘CITY’ attribute in Dataset 1.
Assume each newspaper reader reads one paper and it is from their home city. List the operation(s) to calculate the total number of newspaper readers in each city.