File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,8 @@ cdef:
116116 object oUINT64_MAX = < uint64_t> UINT64_MAX
117117
118118 float64_t NaN = < float64_t> np.nan
119- # the maximum absolute integer value that a 64-bit IEEE floating point number can store is when all 52 bits of its significand/mantissa are 1
119+ # the maximum absolute integer value that a 64-bit IEEE floating point number
120+ # can store is when all 52 bits of its significand/mantissa are 1
120121 # see: https://en.wikipedia.org/wiki/Double-precision_floating-point_format
121122 # related concept in JavaScript:
122123 # https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER
@@ -2875,7 +2876,11 @@ def maybe_convert_objects(ndarray[object] objects,
28752876 result = ints
28762877 elif (np.absolute(floats) > F64_SAFE_INT64_MAX).any():
28772878 # GH 58485
2878- raise ValueError (" integer values with non-nullable dtype too large to be represented by float64, specify an integer dtype explicitly" )
2879+ raise ValueError (
2880+ " integer values with non-nullable dtype too large "
2881+ " to be represented by float64"
2882+ " , specify an integer dtype explicitly"
2883+ )
28792884 else :
28802885 result = floats
28812886 elif seen.nan_:
Original file line number Diff line number Diff line change @@ -2816,7 +2816,7 @@ def test_large_non_nullable_integer_objects(self):
28162816 ],
28172817 }
28182818 with pytest .raises (ValueError , match = "too large to be represented by float64" ):
2819- pd . DataFrame (data )
2819+ DataFrame (data )
28202820
28212821
28222822class TestDataFrameConstructorIndexInference :
You can’t perform that action at this time.
0 commit comments