title: I'm using a weather forecasting code on jupyter notebook python
body: <p>I am working on a machine learning linear regression based project on weather forecasting. I used the following code but I'm getting the error <code>only 2 arguments accepted</code>
  Code is shown below:</p>
  
  <pre><code>from sklearn.linear_model import LinearRegression
  import numpy as np
  X=df.drop(['PrecipitationSumInches'], axis=1)
  Y=df['PrecipitationSumInches']
  Y=Y.values.reshape(-1,1)
  day_index=798
  days=[i for i in range(Y.size)]
  clf=LinearRegression()
  clf.fit(X,Y)
  inp=np.array([74],[60],[45],[67],[49],[43],[33],[45],[57], 
  [29.68],[10],[7],[2],[0],[20],[4],[31])
  inp=inp.reshape(1,-1)
  print("The Precipitation in inches for the input is:",
  clf.predict(inp))
  </code></pre>