def date_parser(dates):
    """
    removes time from the date
    eg input: dates[:3] == [
    '2019-11-29 12:50:54',
    '2019-11-29 12:46:53',
    '2019-11-29 12:46:10']

    output: ['2019-11-29', '2019-11-29', '2019-11-29']

    """

#Create a new list with a list comprehension that split time from the date
    parsed_dates=[i.split()[0] for i in dates]
    return(parsed_dates)