title: FutureWarning: Method .ptp
body: <p>I want to know which line or method caused the Future Warning!</p>
  
  <pre class="lang-py prettyprint-override"><code>predictors = weekly.columns[1:7] # the lags and volume
  X = sm.add_constant(weekly[predictors]) # sm: statsmodels
  y = np.array([1 if el=='Up' else 0 for el in weekly.Direction.values])
  logit = sm.Logit(y,X)
  results=logit.fit()
  print(results.summary())
  </code></pre>
  
  <blockquote>
    <p>C:\Anaconda3\lib\site-packages\numpy\core\fromnumeric.py:2389: FutureWarning: Method .ptp is deprecated and will be removed in a future version. Use numpy.ptp instead.
      return ptp(axis=axis, out=out, **kwargs)
    </p>
  </blockquote>