Example #1
0
 def _init_df(self, data):
     """
         Load df from buffer and set
     """
     if isinstance(data, pd.DataFrame):
         df = data
     else:
         print('loading from cache')
         df = tio.load(data)
     self._df = df
Example #2
0
 def load(self, f=None):
     f = f or self._get_fp('rb')
     self._df = tio.load(f)