def populate_stations(path='/opt/code/vvs_data/HaltestellenVVS_simplified_utf8_stationID.csv'):
    """
    parse simplified csv, add elements to database
    """
    with open(path, 'r') as f:
        reader = csv.reader(f, delimiter=',')
        # skip first row
        next(reader, None)
        for row in reader:
            obj, created = Station.objects.update_or_create(
                station_id=row[0], defaults={
                    'name': row[1],
                    'full_name': row[2]
                }
            )

            if created:
                logging.info("Created station %s" % row[0])
            else:
                logging.info("Updated station %s" % row[0])
dataset/ETHPy150Open opendata-stuttgart/metaEFA/meta_efa/main/utils.py/populate_stations/original