Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
4k views

GeoPandas TypeError: geometries are not orderable (numpy: TypeError: '<' not supported between instances of 'Point' and 'Point')

I'm trying to group rows of a GeoDataFrame based on a common gid value and aggregating two columns for which the values differ but I am facing this error: TypeError ...
swiss_knight's user avatar
  • 11.3k
1 vote
1 answer
382 views

Dissolving polygons based on data values in GeoPandas

I have a long list of polygons in the GeoPandas GeoDataFrame (Sample below) Index zone_name value geometry 0 A 100 POLYGON ((77.47638480859382 13.05584728590942, 77....
Ani's user avatar
  • 125
2 votes
2 answers
2k views

Replace several coordinates by its mean value grouped by multiindex Pandas

I have a table with some info that are getting by a GPS, in my table I have this structure: Date Time Latitude Longitude Accuracy Weather Visibility ViewPoint Species Bearing ...
Digd's user avatar
  • 458
5 votes
1 answer
1k views

Grouping GeoDataFrame by column while comparing feature area and adding values to new column with GeoPandas

I have these columns: "index", "area_of_poly", "cad_admin" in my GeoDataFrame, the dataset is available here: http://www.mediafire.com/file/x4q5k7xuztq6o3w/p.zip. Now, I ...
user122244's user avatar
1 vote
1 answer
2k views

Extract and sort x coordinates in groups from a column to a new one in geopandas?

I am working with geopandas There are these columns:geo,cat and I have to make the new column called rank. rank should contain according to the groups with the similar cat number an increasing ...
user122244's user avatar
18 votes
1 answer
9k views

Clustering geographical data based on point location and associated point values

Given data points with longitude, latitude, and a third property value of this point. How can I cluster points into groups (geographical sub-regions) based on the property value? I searched by google ...
Excalibur's user avatar
  • 281
2 votes
1 answer
2k views

How would I group values in a field based on range of number using python, and then update the attribute table?

An example of what I'm trying to accomplish is described below, however they don't describe how to use the data update cursor to update the attribute column. data - Group values based on range of ...
user3767931's user avatar