def __bytes__(self):
        from pandas.core.config import get_option

        encoding = get_option("display.encoding")
        return self.__unicode__().encode(encoding, 'replace')
Return a string representation for a particular object.
dataset/ETHPy150Open pydata/pandas/pandas/types/dtypes.py/ExtensionDtype.__bytes__