Skip to content

Commit

Permalink
Explode multi ploygons
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieltseng committed Oct 3, 2023
1 parent c5192f9 commit 691baa1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions process_labels/loading_funcs/jecam.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def load_jecam():
df[RequiredColumns.IS_CROP] = (df[NullableColumns.CLASSIFICATION_LABEL] != "non_crop").astype(
int
)
df = df.explode()

df = df.reset_index(drop=True)
df[RequiredColumns.INDEX] = df.index
Expand Down

0 comments on commit 691baa1

Please sign in to comment.