lancechua
10/12/2022, 11:42 AMGenericDataSet
class factory make sense?
I'm looking to write a class factory with the following signature:
python
def create_generic_dataset(
name: str,
load: Callable[[Path, ...], pandas.DataFrame],
save: Callable[[pandas.DataFrame, Path, ...], None]
):
...
or is subclassing the AbstractaDataSet
still the preferred method?