Skip to content

Commit 519b6a9

Browse files
authored
Update helpers.py
Update for numpy 2.0
1 parent 4f9af0f commit 519b6a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

azure-kusto-data/azure/kusto/data/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def parse_float(frame, col):
9797
import numpy as np
9898
import pandas as pd
9999

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

0 commit comments

Comments
 (0)