I am trying to create a geoPandas dataframe in order to represent points in a map. I have a dataset with coordinates and I followed geo Pandas documentation but I still getting this error:
Index(…) must be called with a collection of some kind, True was passed
My dataset is a pandas dataframe with this columns and datatypes:
|variable|data type|
|——–|———|
|No| object|
|TiempodeOrigen| object|
|Latitud| float64|
|Longitud| float64|
|Profundidad| float64|
|MAG| float64|
|NST| int64|
|NF| int64|
|ZS| object|
|Sensible| object|
|Anio| int64|
This is the code that I’m using:
geo_datos = geopandas.GeoDataFrame(datos, crs==crs,geometry=geopandas.points_from_xy(datos.Longitud, datos.Latitud))
Can you help me?