def getGeoNamesMainSpellingFromDataFrame(df, identifier):
  """This function extracts the main spelling from a pandas dataframe filled with geonames data.
  >>> data1 = [
    ... ["6693370","Bruxelles-Capitale","Bruxelles-Capitale","BRU,Brussel-Hoofdstad,Bruxelas-Capital","50.84877","4.34664","A","ADM2","BE","","BRU","BRU","","",0,"","26","Europe/Brussels","2016-12-19"],
    ... ["2797657","Gent","Gent","44021,Arrondissement de Gand,Gand,Gent,Ghent","51.07304","3.73664","A","ADM4","BE","","VLG","VOV","44","44021","262219","",4,"Europe/Brussels","2020-04-04"],
    ... ["2797659","Genovabeek","Genovabeek","Genovabeek,Genovevabeek","50.83222","5.01696","H","STM","BE","","VLG","","","",0,"","30","Europe/Brussels","2012-01-18"]]
  >>> getGeoNamesMainSpellingFromDataFrame(data1, "2797657")
  'Gent'
  """
  return (df.loc[df[0] == identifier, 1]).item()