The Catalog class derives from a pandas.DataFrame, and is also a dataclass. This seems to work, but on a simple example such as
from dataclasses import dataclass
import pandas as pd
@dataclass
class Test(pd.DataFrame):
other: int
# how to instantiate this class with no error?
Test(pd.DataFrame(), 2)
it doesn't. It seems that dataclasses can only derive from other dataclasses. So Catalog should be transformed to a regular class.
The
Catalog
class derives from apandas.DataFrame
, and is also a dataclass. This seems to work, but on a simple example such asit doesn't. It seems that dataclasses can only derive from other dataclasses. So
Catalog
should be transformed to a regular class.