File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2445,13 +2445,13 @@ def _get_analyze_compat_dtype(arr):
2445
2445
mn , mx = arr .min (), arr .max ()
2446
2446
if np .can_cast (mn , np .int32 ) and np .can_cast (mx , np .int32 ):
2447
2447
return np .dtype ('int32' )
2448
- elif ( isinstance (mn , int ) and isinstance (mx , int ) ):
2448
+ elif isinstance (mn , int ) and isinstance (mx , int ):
2449
2449
info = np .finfo ('int32' )
2450
2450
if mn >= info .min and mx <= info .max :
2451
2451
return np .dtype ('int32' )
2452
2452
if np .can_cast (mn , np .float32 ) and np .can_cast (mx , np .float32 ):
2453
2453
return np .dtype ('float32' )
2454
- elif ( isinstance (mn , float ) and isinstance (mx , float ):
2454
+ elif isinstance (mn , float ) and isinstance (mx , float ):
2455
2455
info = np .finfo ('float32' )
2456
2456
if mn >= info .min and mx <= info .max :
2457
2457
return np .dtype ('float32' )
You can’t perform that action at this time.
0 commit comments