def METHOD_NAME(self, data, source=None, default_tf=None):
    shape = (len(data),)
    self.resize(shape, refcheck=False)
    if isinstance(data, pd.DataFrame):
        data.reset_index(inplace=True)
        data.insert(0, 'id', data.index)
        data.Date = self.convert_dates(data.Date)
        data = data.rename(
            columns={
                'Date': 'time',
                'Open': 'open',
                'High': 'high',
                'Low': 'low',
                'Close': 'close',
                'Volume': 'volume',
            }
        )
        for name in self.dtype.names:
            self[name] = data[name]
    elif isinstance(data, (np.recarray, BaseQuotes)):
        self[:] = data[:]
    self._nan_to_closest_num()
    self._set_time_frame(default_tf)
    return self