Skip to content

Commit

Permalink
change comparison to np.nan to .notna()
Browse files Browse the repository at this point in the history
As recommended in #82 (review)
  • Loading branch information
ioalexei authored Oct 8, 2024
1 parent a216e30 commit 9b026c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assign_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def main(
log.info(gdf.head())
log.info(
"Are There Duplicates? {}",
gdf[gdf["image_id"] is not None and gdf["image_id"] != np.nan]["image_id"]
gdf[gdf["image_id"] is not None and gdf["image_id"].notna()]["image_id"]
.duplicated()
.any(),
)
Expand Down

0 comments on commit 9b026c8

Please sign in to comment.