pandera.schemas.SeriesSchema.__init__

SeriesSchema.__init__(dtype=None, checks=None, index=None, nullable=False, unique=False, allow_duplicates=None, coerce=False, name=None, pandas_dtype=None)[source]

Initialize series schema base object.

Parameters

Warning

This option will be deprecated in 0.8.0. Use the unique argument instead.

Parameters
  • coerce (bool) – If True, when schema.validate is called the column will be coerced into the specified dtype. This has no effect on columns where pandas_dtype=None.

  • name (Optional[str]) – series name.

  • pandas_dtype (Union[str, type, DataType, ExtensionDtype, dtype, None]) –

    alias of dtype for backwards compatibility.

    Warning

    This option will be deprecated in 0.8.0