Skip to content

Commit

Permalink
Merge pull request #1673 from CartoDB/bug/ch70796/sort-source-id-when…
Browse files Browse the repository at this point in the history
…-creating-isolines

Removing sort by data_range when retrieving isolines
  • Loading branch information
Jesus89 committed Aug 20, 2020
2 parents dc45ed2 + e0a8fdf commit 4c1f046
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cartoframes/data/services/isolines.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ def _iso_areas(self,
# Execute and download the query to generate the isolines
gdf = read_carto(sql, self._credentials)

# Sorting by `data_range` column and recalculating `cartodb_id`
gdf.sort_values(by=[DATA_RANGE_KEY], ascending=ascending, inplace=True)
# Recalculating `cartodb_id`
gdf.reset_index(drop=True, inplace=True)
if CARTO_INDEX_KEY in gdf.columns:
gdf[CARTO_INDEX_KEY] = gdf.index + 1
Expand Down

0 comments on commit 4c1f046

Please sign in to comment.