A dummy dataframe-like class that supports the dataframe interchange protocol (__dataframe__ method).
| 110 | |
| 111 | |
| 112 | class CustomDataframe: |
| 113 | """A dummy dataframe-like class that supports the dataframe interchange protocol |
| 114 | (__dataframe__ method). |
| 115 | """ |
| 116 | |
| 117 | def __init__(self, data: pd.DataFrame): |
| 118 | self._data: pd.DataFrame = data |
| 119 | |
| 120 | def __dataframe__(self, allow_copy: bool = True): |
| 121 | return self._data.__dataframe__(allow_copy=allow_copy) |
| 122 | |
| 123 | |
| 124 | class StrTestEnum(str, enum.Enum): |
no outgoing calls
no test coverage detected
searching dependent graphs…