(csv_path: pathlib.Path, num_rows: int, row_offset: int = 0)
| 197 | |
| 198 | |
| 199 | def write_chase_csv(csv_path: pathlib.Path, num_rows: int, row_offset: int = 0) -> None: |
| 200 | csv_path.parent.mkdir(parents=True, exist_ok=True) |
| 201 | with csv_path.open("wt", encoding="utf-8") as fo: |
| 202 | fo.write(CHASE_CSV_HEADER) |
| 203 | fo.write("\n") |
| 204 | for i in range(num_rows): |
| 205 | idx = row_offset + i |
| 206 | amount = -(idx % 1000) - (idx % 100) / 100 |
| 207 | fo.write( |
| 208 | f"04/03/2024,04/05/2024,Vendor {idx},Shopping,Sale,{amount:.2f},\n" |
| 209 | ) |
| 210 | |
| 211 | |
| 212 | def write_citi_csv(csv_path: pathlib.Path, num_rows: int, row_offset: int = 0) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected