pandas 1.4.2

ParametersReturns
_get_values(values: 'np.ndarray', skipna: 'bool', fill_value: 'Any' = None, fill_value_typ: 'str | None' = None, mask: 'npt.NDArray[np.bool_] | None' = None) -> 'tuple[np.ndarray, npt.NDArray[np.bool_] | None, np.dtype, np.dtype, Any]'

If both mask and fill_value/fill_value_typ are not None and skipna is True, the values array will be copied.

For input arrays of boolean or integer dtypes, copies will only occur if a precomputed mask, a fill_value/fill_value_typ, and skipna=True are provided.

Parameters

values : ndarray

input array to potentially compute mask for

skipna : bool

boolean for whether NaNs should be skipped

fill_value : Any

value to fill NaNs with

fill_value_typ : str

Set to '+inf' or '-inf' to handle dtype-specific infinities

mask : Optional[np.ndarray[bool]]

nan-mask if known

Returns

values : ndarray

Potential copy of input value array

mask : Optional[ndarray[bool]]

Mask for values, if deemed necessary to compute

dtype : np.dtype

dtype for values

dtype_max : np.dtype

platform independent dtype

fill_value : Any

fill value used

Utility to get the values view, mask, dtype, dtype_max, and fill_value.

Examples

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


File: /pandas/core/nanops.py#257
type: <class 'function'>
Commit: