title: How do I convert 1M OHLC to 5M OHLC using pandas
body: <p>I am trying to convert 1M OHLC to 5M OHLC for a bunch of files using pandas</p>
  
  <p>This is how my data looks like:</p>
  
  <pre><code>dateTime             | open   | high | low | close | vol |
  -----------------------------------------------------------
  01-06-2018  00:50:00 | 0.97456| 0.2456|0.2145|0.241|54.26
  01-06-2018  00:51:00 | 0.94566| 0.2145|0.1455|0.214|65.24
  01-06-2018  00:52:00 | 0.89654| 0.2145|0.2144|0.214|73.25
  </code></pre>
  
  <p>How do I resample and save as a 5M OHLC csv</p>
  
  <p>Thanks in advance</p>
  
  <p>edit 1: This is what i get with print (df.info())</p>
  
  <pre><code>&lt;class 'pandas.core.frame.DataFrame'&gt;
  Index: 375660 entries, 2018-06-01 00:00:00 to 2019-05-31 20:59:00
  Data columns (total 4 columns):
  open     375660 non-null float64
  high     375660 non-null float64
  low      375660 non-null float64
  close    375660 non-null float64
  dtypes: float64(4)
  memory usage: 14.3+ MB
  None
  </code></pre>