title: Multiple Linear Regression in Python (PatsyError: model is missing required outcome variables)
body: <p>I am running the following code for regression in Python and I get the error (PatsyError: model is missing required outcome variables). How do I fix it?
  Thanks</p>
  
  <pre><code>Y = spikers['grade'] 
  X = spikers[['num_pageview', 'num_video_play_resume', 'eng_proficiency', 'english']] 
  model = smf.ols(Y,X).fit() 
  model.summary()
  </code></pre>