title: Create file OLS in Python Statsmodels
body: <p>I dont have much knowledge in Python but I have to crack this for an assessment completion, </p>
  
  <p><strong>Question:</strong><br>
  Run the following code to load the required libraries and create the data set to fit the model.</p>
  
  <pre><code>from sklearn.datasets import load_boston
  import pandas as pd 
  
  boston = load_boston()
  dataset = pd.DataFrame(boston.data, columns=boston.feature_names)
  dataset['target'] = boston.target
  
  print(dataset.head())
  </code></pre>
  
  <p>I have to perform the following steps to complete this scenario.</p>
  
  <p>For the boston dataset loaded in the above code snippet, perform linear regression.<br>
  Use the target variable as the dependent variable.<br>
  Use the RM variable as the independent variable.<br>
  Fit a single linear regression model using statsmodels package in python.<br>
  Import statsmodels packages appropriately in your code.<br>
  Upon fitting the model, Identify the coefficients.<br>
  Finally print the model summary in your code.<br>
  You can write your code using vim app.py .  </p>
  
  <p>Press i for insert mode.<br>
  Press esc and then :wq to save and quit the editor.  </p>
  
  <p>Please help me to understand how to get this completed. Your valuable comments are much appreciated </p>
  
  <p>Thanks in Advance</p>