1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
from __future__ import annotations from abc import ABC, abstractmethod class PandasSerializableType(ABC): def __init__(self, *args, **kwargs): pass @property @abstractmethod def pandas_tuple(self): raise NotImplementedError("Not meant to be implemented") @property @abstractmethod def pandas_columns(self): raise NotImplementedError("Not meant to be implemented")