pandera.strategies.xarray_strategies.data_array_strategyΒΆ
- pandera.strategies.xarray_strategies.data_array_strategy(dtype=None, dims=None, sizes=None, shape=None, coords=None, name=None, checks=None, nullable=False, size=None)ΒΆ
Strategy to generate an
xarray.DataArray.- Parameters:
dtype β numpy dtype or string for the array data.
sizes (dict[str, int | None] | None) β mapping of dim name to size.
shape (tuple[int | None, ...] | None) β positional shape tuple.
coords (dict | None) β mapping of coord name to values/strategy.
name (str | None) β name for the DataArray.
checks (Sequence | None) β (unused) reserved for future check-aware generation.
nullable (bool) β if True, sprinkle NaN values.
size (int | None) β default size for dimensions without an explicit size.
- Return type:
SearchStrategy- Returns:
hypothesis strategy producing
xr.DataArray.