This is a pre-release version (latest). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy latest / numpy / ma / core / common_fill_value

function

numpy.ma.core:common_fill_value

source: build-install/usr/lib/python3.14/site-packages/numpy/ma/core.py :586

Signature

def   common_fill_value ( a b )

Summary

Return the common filling value of two masked arrays, if any.

Extended Summary

If a.fill_value == b.fill_value, return the fill value, otherwise return None.

Parameters

a, b : MaskedArray

The masked arrays for which to compare fill values.

Returns

fill_value : scalar or None

The common fill value, or None.

Examples

import numpy as np
x = np.ma.array([0, 1.], fill_value=3)
y = np.ma.array([0, 1.], fill_value=3)
np.ma.common_fill_value(x, y)

Aliases

  • numpy.ma.common_fill_value