Skip to content

Conversation

@riclage
Copy link
Contributor

@riclage riclage commented Mar 25, 2019

Problem
Some csv files can have an extra space after or before the date. For example:

10 Dec 2018 ; To John Doe  ; 20.75 ;  ;  ;  ; 48.35; transfers; groceries

Setting the csv_date_format to %d %b %Y won't work because the date has this extra space in the end: "10 Dec 2018 ".

Solution
We use .strip() on the date string before parsing it.

@petdr petdr merged commit 60e2cb1 into quentinsf:master Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants