numpy 1.22.4 Pypi GitHub Homepage
Other Docs
ParametersReturns
default_fill_value(obj)

The default filling value depends on the datatype of the input array or the type of the input scalar:

======== ======== datatype default ======== ======== bool True int 999999 float 1.e20 complex 1.e20+0j object '?' string 'N/A' ======== ========

For structured types, a structured scalar is returned, with each field the default fill value for its type.

For subarray types, the fill value is an array of the same size containing the default scalar fill value.

Parameters

obj : ndarray, dtype or scalar

The array data-type or scalar for which the default fill value is returned.

Returns

fill_value : scalar

The default fill value.

Return the default fill value for the argument object.

Examples

This example is valid syntax, but we were not able to check execution
>>> np.ma.default_fill_value(1)
999999
This example is valid syntax, but we were not able to check execution
>>> np.ma.default_fill_value(np.array([1.1, 2., np.pi]))
1e+20
This example is valid syntax, but we were not able to check execution
>>> np.ma.default_fill_value(np.dtype(complex))
(1e+20+0j)
See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /numpy/ma/core.py#223
type: <class 'function'>
Commit: