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