pandas 1.4.2

ParametersReturnsBackRef
array_equivalent(left, right, strict_nan: 'bool' = False, dtype_equal: 'bool' = False) -> 'bool'

Parameters

left, right : ndarrays
strict_nan : bool, default False

If True, consider NaN and None to be different.

dtype_equal : bool, default False

Whether :None:None:`left` and :None:None:`right` are known to have the same dtype according to :None:None:`is_dtype_equal`. Some methods like :None:None:`BlockManager.equals`. require that the dtypes match. Setting this to True can improve performance, but will give different results for arrays that are equal but different dtypes.

Returns

b : bool

Returns True if the arrays are equivalent.

True if two arrays, left and right, have equal non-NaN elements, and NaNs in corresponding locations. False otherwise. It is assumed that left and right are NumPy arrays of the same dtype. The behavior of this function (particularly with respect to NaNs) is not defined if the dtypes are different.

Examples

This example is valid syntax, but we were not able to check execution
>>> array_equivalent(
...  np.array([1, 2, np.nan]),
...  np.array([1, 2, np.nan])) True
This example is valid syntax, but we were not able to check execution
>>> array_equivalent(
...  np.array([1, np.nan, 2]),
...  np.array([1, 2, np.nan])) False
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

pandas.core.dtypes.missing.array_equivalent

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/dtypes/missing.py#390
type: <class 'function'>
Commit: