Skip to content

Instantly share code, notes, and snippets.

@wildiney
Created May 30, 2021 20:29
Show Gist options
  • Save wildiney/1bece9c7a744a7e134c47ad3e38523cb to your computer and use it in GitHub Desktop.
Save wildiney/1bece9c7a744a7e134c47ad3e38523cb to your computer and use it in GitHub Desktop.
dateparse = lambda dates: pd.datetime.strptime(dates, '%Y-%m')
dataset = pd.read_csv('{}arquivo.csv'.format(path), parse_dates = ['Month'], index_col = 'Month', date_parser = dateparse)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment