This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """Convert given Wells Fargo exported CSV to YNAB import-compatible CSV format. | |
| Usage:`python3 wells_fargo_to_ynab_import.py <input.csv> [output.csv]` | |
| # outputs: input_ynab.csv | |
| Or specify a custom output path: | |
| python3 wells_fargo_to_ynab_import.py "CreditCard.csv" my_output.csv | |
| # outputs: my_output.csv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function deleteDuplicates(arr) { | |
| arr.sort(); | |
| var lastElement = ''; | |
| var arrDuplicate = arr; | |
| for (var i = arrDuplicate.length; i >= 0; i--) { | |
| if (arrDuplicate[i] == lastElement) { | |
| arr.splice(i, 1); | |
| } | |
| lastElement = arrDuplicate[i]; | |
| } |