File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ def default(session):
38
38
for local_dep in LOCAL_DEPS :
39
39
session .install ("-e" , local_dep )
40
40
41
- # Pyarrow does not support Python 3.7
42
41
dev_install = ".[all]"
43
42
session .install ("-e" , dev_install )
44
43
Original file line number Diff line number Diff line change @@ -488,7 +488,10 @@ def test_bq_to_arrow_array_w_special_floats(module_under_test):
488
488
roundtrip = arrow_array .to_pylist ()
489
489
assert len (rows ) == len (roundtrip )
490
490
assert roundtrip [0 ] == float ("-inf" )
491
- assert roundtrip [1 ] != roundtrip [1 ] # NaN doesn't equal itself.
491
+ # Since we are converting from pandas, NaN is treated as NULL in pyarrow
492
+ # due to pandas conventions.
493
+ # https://arrow.apache.org/docs/python/data.html#none-values-and-nan-handling
494
+ assert roundtrip [1 ] is None
492
495
assert roundtrip [2 ] == float ("inf" )
493
496
assert roundtrip [3 ] is None
494
497
You can’t perform that action at this time.
0 commit comments