Skip to main content

read_csv

Function read_csv 

Source
fn read_csv(words: &BankWords, text: &str) -> Result<Statement, String>
Expand description

A bank’s CSV, PayPal’s and Stripe’s too: the header row found by its words (date, label or name, amount or net, or debit and credit), ; or ,, decimal commas; a balance written above it read too (as some French banks write it: “Solde (EUROS) ;1 234,56” under “Date ;03/10/2026”), or one on each row (PayPal). Net amounts, fees deducted, when given; rows in another currency than most of the file’s, and those refused, cancelled or pending, left out.