MCPcopy Create free account
hub / github.com/LaunchPlatform/beanhub-cli / write_chase_csv

Function write_chase_csv

tests/benchmark/conftest.py:199–209  ·  view source on GitHub ↗
(csv_path: pathlib.Path, num_rows: int, row_offset: int = 0)

Source from the content-addressed store, hash-verified

197
198
199def 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
212def write_citi_csv(csv_path: pathlib.Path, num_rows: int, row_offset: int = 0) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected