class_docstr: A simple wrapper for a string to be interpreted as a Patsy formula.
class_docstr_tok: ["A","simple","wrapper","for","a","string","to","be","interpreted","as","a","Patsy","formula","."]
code: def __init__(self, formula):
      self.formula = "0 + " + formula
  
imports: import pandas
  import numpy
  import patsy
  from statsmodels.base.model import LikelihoodModelResults
  from statsmodels.regression.linear_model import OLS
  from collections import defaultdict
label_desc: Use image node_id 1 to create a new PatsyFormula object  with example: obj = PatsyFormula(formula)