def from_pandas(cls, dataframe: pd.DataFrame) -> "Dataset":
        """Imports records from a `pandas.DataFrame`.

        Columns that are not supported are ignored.

        Args:
            dataframe: A pandas DataFrame from which to import the records.

        Returns:
            The imported records in a argilla Dataset.
        """
        not_supported_columns = [col for col in dataframe.columns if col not in cls._record_init_args()]
        if not_supported_columns:
            warnings.warn(
                "Following columns are not supported by the"
                f" {cls._RECORD_TYPE.__name__} model and are ignored:"
                f" {not_supported_columns}"
            )
            dataframe = dataframe.drop(columns=not_supported_columns)

        return cls._from_pandas(dataframe)
Imports records from a `pandas.DataFrame`.

        Columns that are not supported are ignored.

        Args:
            dataframe: A pandas DataFrame from which to import the records.

        Returns:
            The imported records in a argilla Dataset.
        
argilla-v1/src/argilla_v1/client/datasets.py