MCPcopy Create free account
hub / github.com/numpy/numpy / _scalar_fill_value

Function _scalar_fill_value

numpy/ma/core.py:275–279  ·  view source on GitHub ↗
(dtype)

Source from the content-addressed store, hash-verified

273
274 """
275 def _scalar_fill_value(dtype):
276 if dtype.kind in 'Mm':
277 return default_filler.get(dtype.str[1:], '?')
278 else:
279 return default_filler.get(dtype.kind, '?')
280
281 dtype = _get_dtype_of(obj)
282 return _recursive_fill_value(dtype, _scalar_fill_value)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected