Skip to content

Commit

Permalink
Update helpers.py (#540)
Browse files Browse the repository at this point in the history
Update for numpy 2.0
  • Loading branch information
mayamarom10 authored Jun 17, 2024
1 parent 4f9af0f commit 9cb1fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azure-kusto-data/azure/kusto/data/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def parse_float(frame, col):
import numpy as np
import pandas as pd

frame[col] = frame[col].replace("NaN", np.NaN).replace("Infinity", np.PINF).replace("-Infinity", np.NINF)
frame[col] = frame[col].replace("NaN", np.nan).replace("Infinity", np.inf).replace("-Infinity", -np.inf)
frame[col] = pd.to_numeric(frame[col], errors="coerce").astype(pd.Float64Dtype())
return frame[col]

Expand Down

0 comments on commit 9cb1fa2

Please sign in to comment.