Skip to content

Commit 112a9ab

Browse files
committed
Add trick to remove numpy dependency
1 parent 3207216 commit 112a9ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

influxdb/tests/dataframe_client_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_write_points_with_nan_values(self):
4141
columns=["column_one", "column_two",
4242
"column_three"])
4343

44-
dataframe.replace(2, np.nan)
44+
dataframe.replace('2', float("NaN"))
4545

4646
expected = (
4747
b"foo column_one=\"1\",column_two=1i,column_three=1.0 0\n"

0 commit comments

Comments
 (0)