class_docstr: Calculates a regression of data1 on data0 using ``pandas.ols``
  
  Uses ``pandas``
class_docstr_tok: ["Calculates","a","regression","of","data1","on","data0","using","``","pandas.ols","``","Uses","``","pandas","``"]
code: def next(self):
      y, x = (pd.Series(d.get(size=self.p.period)) for d in self.datas)
      r_beta = pd.ols(y=y, x=x, window_type="full_sample")
      self.lines.beta[0] = r_beta.beta["x"]
  
file_path: backtrader/backtrader/indicators/ols.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import backtrader
  from .None import PeriodN
label_desc: Use image node_id 1 for calling the OLS_BetaN obj's underlying member method code with example usage: obj.next() without return types