title: Python NameError: name 'X' is not defined
body: <p>When I get into really big code problems, I don't mind, but when I get into these basic things, it really puzzles me.</p>
  
  <pre><code>from mlr.MLR import MyLinearRegression as mlr
  import numpy as np
  import pandas as pd
  
  df=pd.read_csv('baseball.csv', delimiter = ',')
  
  feature_cols = ['RS', 'RA', 'OBP', 'SLG', 'BA']
  target_col = 'W'
  
  model = mlr()
  model.fit_dataframe(X=feature_cols,y = target_col,dataframe=df)
  
  model.ingest_data(X,y)
  </code></pre>
  
  <p>I get the infamous:</p>
  
  <blockquote>
    <p>NameError                                 Traceback (most recent call
    last)  in 
    ----> 1 model.ingest_data(X,y)</p>
    
    <p>NameError: name 'X' is not defined</p>
  </blockquote>
  
  <p>Did I not define X above as X=feature_cols ?</p>