title: Pandas new way to convert daily data to weekly data?
body: <p>I pretty much copied the code <a href="https://gist.github.com/prithwi/339f87bf9c3c37bb3188" rel="nofollow noreferrer">here</a> to convert my daily stock data to weekly data. It's saying that the how args in .resample() is now deprecated. I assume it wants me to do something like <code>.max()</code> and <code>.min()</code> or something. Is there a neat way to do that so that I don't get the message every time? </p>
  
  <p>If it helps my DataFrame is: </p>
  
  <pre><code>            Open  High   Low  Close  Adj Close    Volume
  Date                                                    
  2017-10-23  4.99  5.04  4.94   4.94       4.94  13412313
  2017-10-24  4.95  5.02  4.95   5.00       5.00   8655448
  2017-10-25  5.02  5.05  5.00   5.05       5.05  13721794
  2017-10-26  4.98  5.00  4.82   4.87       4.87  26708894
  2017-10-27  4.88  4.91  4.77   4.79       4.79  25369776
  2017-10-30  4.85  4.85  4.72   4.74       4.74  13791695
  2017-10-31  4.73  4.73  4.64   4.64       4.64  20530300
  2017-11-01  4.76  4.79  4.67   4.68       4.68  18949283
  2017-11-02  4.76  4.92  4.76   4.87       4.87  18523514
  2017-11-03  4.88  4.90  4.76   4.80       4.80  13961895
  2017-11-06  4.83  4.86  4.80   4.80       4.80  10856694
  2017-11-07  4.92  5.06  4.91   5.03       5.03  24469556
  2017-11-08  4.96  4.98  4.88   4.90       4.90  19049326
  2017-11-09  4.96  4.96  4.88   4.88       4.88  12104442
  2017-11-10  4.90  4.91  4.82   4.86       4.86  12412000
  </code></pre>