cswork / OAOpen practice workspace

StripeOA #5

Cuisine Count (Pandas)

Estimated EasyNon-algorithmicStatement and editorial — judging is being prepared

Topics (AI-labelled)StringsHashing

Dataframe df with columns restaurant_id, location_code, cuisines (space-separated lowercase strings):

  1. Drop restaurants offering fewer than 3 cuisines.
  2. Strip location_code to alphanumeric characters only.
  3. For each cleaned location, count how many restaurants offer each of italian, chinese, indian, mexican (one column per cuisine).

Output sorted by location_code ascending.

Editorial

Loading solution…