Skip to content

Commit

Permalink
πŸ› numpy 2.0
Browse files Browse the repository at this point in the history
closes #6
  • Loading branch information
juftin committed Oct 8, 2024
1 parent a80cc1e commit 0f2ba5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lunchable_primelunch/primelunch.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def df_to_models(
List[LunchableModel]
"""
array_df = df.copy()
array_df = array_df.replace(np.NaN, None)
array_df = array_df.replace(np.nan, None)
model_array = array_df.to_dict(orient="records")
return [model_type.model_validate(item) for item in model_array]

Expand Down

0 comments on commit 0f2ba5f

Please sign in to comment.