Returns a date parser for pandas

def dateparser(self, dformat='%d/%m/%Y'):
        """
        Returns a date parser for pandas
        """

        def dateparse(dates):
            return [pd.datetime.strptime(d, dformat) for d in dates]

        return dateparse