def METHOD_NAME(self) -> Optional[Schema]:
    """
    An instance of :py:class:`mlflow.types.Schema` representing the tabular dataset. May be
    ``None`` if the schema cannot be inferred from the dataset.
    """
    try:
        return _infer_schema(self._df)
    except Exception as e:
        _logger.warning("Failed to infer schema for Pandas dataset. Exception: %s", e)
        return None