code: def transform(row, table):
      'Transform row "link" into full URL and add "state" based on "name"'
  
      data = row._asdict()
      data["link"] = urljoin("https://pt.wikipedia.org", data["link"])
      data["name"], data["state"] = regexp_city_state.findall(data["name"])[0]
      return datf transform(row, table):
      'Transform row "link" into full URL and add "state" based on "name"'
  
      data = row._asdict()
      data["link"] = urljoin("https://pt.wikipedia.org", data["link"])
      data["name"], data["state"] = regexp_city_state.findall(data["name"])[0]
      return data
docs: Transform row "link" into full URL and add "state" based on "name"