numpy.MaskedArray.default_fill_value() is used to return the default padding value for the argument object. The default padding value depends on the data type of the input array or the type of the input scalar. If the data type is bool, then the default padding value is True, for int it is 999999, 1.e20 for float, for complex — 1.e20 + 0.j, & # 39;? & # 39; for the object and & # 39; N / A & # 39; for a string.
obj: [ndarray, dtype or scalar] The array data-type or scalar for which the default fill value is returned.
Return : [scalar] The default fill value.
Code # 1:
Input array: [[1 2] [ 3 -1] [5 -3]] Masked array: [[- 2] [- -1] [5 -3]] Default filled value: 999999
Code # 2:
| tr> |
Input array: [[1. + 2.j 2. + 3.j ] [3.-2.j -1. + 2.j] [5.-4.j -3.-3.j]] Masked array: [[- - (2 + 3j)] [- (-1 + 2j)] [(5-4j) (-3-3j)]] Default filled value: (1e + 20 + 0j)
IRMA is a research-based professional organization dedicated to advancing the concepts and practices of information resource management in modern organizations. The primary purpose of IRMA is to promo...
Data is “unreasonably effective”. Nobel laureate Eugene Wigner referred to the unreasonable effectiveness of mathematics in the natural sciences. What is big data? Its sizes are in the order of te...
The big data era is upon us: data are being generated, analyzed, and used at an unprecedented scale, and data-driven decision making is sweeping through all aspects of society. Since the value of data...
Grokking Deep Learning teaches you to build deep learning neural networks from scratch! In his immersive style, deep learning expert Andrew Trask shows you the hidden science so you can uncover every ...