Skip to content

Commit

Permalink
Pass arguments of get_h3_indices to h3 function
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentAntoine committed Dec 20, 2024
1 parent 005878d commit 640ff2a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions datascience/src/pipeline/helpers/spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,7 @@ def get_h3_indices(
res = pd.Series([], dtype=object)
else:
res = df.apply(
lambda row: h3.latlng_to_cell(
row["latitude"], row["longitude"], resolution
),
lambda row: h3.latlng_to_cell(row[lat], row[lon], resolution),
axis=1,
)

Expand Down

0 comments on commit 640ff2a

Please sign in to comment.