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
def load(self, f=None): f = f or self._get_fp('rb') self._df = tio.load(f)