alpaca_trade_api/entity.py
def df(self):
        '''## Experimental '''
        if not hasattr(self, '_df'):
            dfs = []
            for symbol, bars in self.items():
                df = bars.df.copy()
                df.columns = pd.MultiIndex.from_product(
                    [[symbol, ], df.columns])
                dfs.append(df)
            if len(dfs) == 0:
                self._df = pd.DataFrame()
            else:
                self._df = pd.concat(dfs, axis=1)
        return self._df
def df(self):
        '''## Experimental '''
        if not hasattr(self, '_df'):
            dfs = []
            for symbol, bars in self.items():
                df = bars.df.copy()
                df.columns = pd.MultiIndex.from_product(
                    [[symbol, ], df.columns])
                dfs.append(df)
            if len(dfs) == 0:
                self._df = pd.DataFrame()
            else:
                self._df = pd.concat(dfs, axis=1)
        return self._df
def df ( self ) : if not hasattr ( self , '_df' ) : dfs = [ ] for symbol , bars in self . items ( ) : df = bars . df . copy ( ) df . columns = pd . MultiIndex . from_product ( [ [ symbol , ] , df . columns ] ) dfs . append ( df ) if len ( dfs ) == 0 : self . _df = pd . DataFrame ( ) else : self . _df = pd . concat ( dfs , axis = 1 ) return self . _df
## Experimental
## Experimental