A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.astropy.org/en/stable/api/../api/astropy.utils.masked.MaskableShapedLikeNDArray.html below:

MaskableShapedLikeNDArray — Astropy v7.1.0

MaskableShapedLikeNDArray#
class astropy.utils.masked.MaskableShapedLikeNDArray[source]#

Bases: ShapedLikeNDArray

Like ShapedLikeNDArray, but for classes that can work with masked data.

Defines default unmasked property as well as a filled method, and inherits private class methods that help deal with masked inputs.

Any class using this must provide a masked property, which tells whether the underlying data are Masked, as well as a mask property, which generally should provide a read-only copy of the underlying mask.

Attributes Summary

Methods Summary

Attributes Documentation

mask#

The mask.

masked#

Whether or not the instance uses masked values.

unmasked#

Get an instance without the mask.

Note that while one gets a new instance, the underlying data will be shared.

See also

filled

get a copy of the underlying data, with masked values filled in.

Methods Documentation

filled(fill_value)[source]#

Get a copy of the underlying data, with masked values filled in.

Parameters:
fill_valueobject

Value to replace masked values with.

Returns:
filledinstance

Copy of self with masked items replaced by fill_value.

See also

unmasked

get an instance without the mask.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4