import geopandas as gpd
File downloaded from https://data.brno.cz/datasets/mestobrno::nehody-s-účastí-chodců-pedestrian-accidents/about
= gpd.read_file("brno_pedestrian_accidents.geojson") df
= df.drop(columns=['OBJECTID', 'id', 'datum', 'hodina', 'POINT_X', "POINT_Y", "GlobalID", "geometry"]) df
= df.dropna(subset=["d", "e"]) df
= df.set_geometry(gpd.points_from_xy(df["d"], df["e"], crs=5514)).drop(columns=["d", "e"]) df
"../../point_patterns/data/brno_pedestrian_accidents.gpkg") df.to_file(