def save(self, data): validate_dtype(data, ndarray) np_save(file=self.path, arr=data, allow_pickle=True)
def load(self): data = np_load(file=self.path, allow_pickle=True) validate_dtype(data, ndarray) return data
def load(self): data = pd_load(filepath_or_buffer=self.path, compression="gzip") validate_dtype(data, PANDAS_DTYPES) return data
def save(self, data): validate_dtype(data, PANDAS_DTYPES) data.to_pickle(path=self.path, compression="gzip")
def save(self, data): fig = data validate_dtype(fig, Figure) fig.savefig(self.path) fig.clf()