pandera.strategies.xarray_strategies.xarray_dtype_strategy¶ pandera.strategies.xarray_strategies.xarray_dtype_strategy(dtype_spec, strategy=None, **kwargs)[source]¶ Strategy to generate scalar values matching a numpy dtype. Parameters: dtype_spec – numpy dtype or pandera DataType. strategy (UnionType[SearchStrategy, None]) – optional strategy to chain onto. kwargs – passed to hypothesis.extra.numpy.from_dtype. Return type: SearchStrategy Returns: hypothesis strategy producing scalar values.