Skip to content

Commit

Permalink
Update python/cuspatial/cuspatial/core/geodataframe.py
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Harris <[email protected]>
  • Loading branch information
mroeschke and harrism authored Aug 13, 2024
1 parent 8931c5e commit e4ad129
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/cuspatial/cuspatial/core/geodataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,10 @@ def _recombine_columns(
The output is meant for GeoDataFrame._from_data.
"""
if not (
geo_columns.empty or data_columns.empty
) and not geo_columns.index.equals(data_columns.index):
geo_columns.empty or
data_columns.empty or
geo_columns.index.equals(data_columns.index)
):
raise ValueError("geo_columns.index must equal data_columns.index")

columns_mask = self.columns
Expand Down

0 comments on commit e4ad129

Please sign in to comment.