File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -196,14 +196,14 @@ def _get_fill_value(dtype, fill_value):
196
196
if fill_value == NA :
197
197
if np .issubdtype (dtype , np .floating ) or np .issubdtype (dtype , np .complexfloating ):
198
198
return np .nan
199
- # This is madness, but npg checks that fill_value is compatible
200
- # with array dtype even if the fill_value is never used.
201
- elif np .issubdtype (dtype , np .integer ):
202
- return get_neg_infinity (dtype , min_for_int = True )
203
199
elif np .issubdtype (dtype , np .timedelta64 ):
204
200
return np .timedelta64 ("NaT" )
205
201
elif np .issubdtype (dtype , np .datetime64 ):
206
202
return np .datetime64 ("NaT" )
203
+ # This is madness, but npg checks that fill_value is compatible
204
+ # with array dtype even if the fill_value is never used.
205
+ elif np .issubdtype (dtype , np .integer ):
206
+ return get_neg_infinity (dtype , min_for_int = True )
207
207
else :
208
208
return None
209
209
return fill_value
You can’t perform that action at this time.
0 commit comments