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):
24452445 mn , mx = arr .min (), arr .max ()
24462446 if np .can_cast (mn , np .int32 ) and np .can_cast (mx , np .int32 ):
24472447 return np .dtype ('int32' )
2448- elif ( isinstance (mn , int ) and isinstance (mx , int ) ):
2448+ elif isinstance (mn , int ) and isinstance (mx , int ):
24492449 info = np .finfo ('int32' )
24502450 if mn >= info .min and mx <= info .max :
24512451 return np .dtype ('int32' )
24522452 if np .can_cast (mn , np .float32 ) and np .can_cast (mx , np .float32 ):
24532453 return np .dtype ('float32' )
2454- elif ( isinstance (mn , float ) and isinstance (mx , float ):
2454+ elif isinstance (mn , float ) and isinstance (mx , float ):
24552455 info = np .finfo ('float32' )
24562456 if mn >= info .min and mx <= info .max :
24572457 return np .dtype ('float32' )
You can’t perform that action at this time.
0 commit comments