title: Formatting Dates from Array in Python
body: <p><img src="https://i.stack.imgur.com/b4D76.png" alt="Screenshot of my code"></p>
  
  <p>I am trying to convert the date format in an array from '2018-03-02' (Y-m-d) to '20180302'. I would think a for loop through the dates array would change each date, however, I am getting the following error:</p>
  
  <blockquote>
    <p>TypeError: strptime() argument 1 must be str, not list</p>
  </blockquote>
  
  <p>I would like a new array of dates that are formatted using "Y%m%d"</p>