Make a new class-based array creator. ```python class ArrayCreator: def __init__(specs): self.specs = specs def __call__(self, array): return self.create(array) def ones(self, shape): return self(np.ones(shape)) def zeros(self, shape): return self(np.zeros(shape)) series = ArrayCreator(series_specs) map = ArrayCreator(map_specs) ``` A data array can be created like the following codes. ```python array_1 = series([[1, 2], [3, 4]]) array_2 = series.ones([10, 10]) ```
Activity
#17 Update Poetry config
#17 Add creator module
#17 Update creator module