Skip to content

Instantly share code, notes, and snippets.

@masiarek
Created July 10, 2022 18:23
Show Gist options
  • Save masiarek/ef317363a05b6c16a40e2486c56e9df7 to your computer and use it in GitHub Desktop.
Save masiarek/ef317363a05b6c16a40e2486c56e9df7 to your computer and use it in GitHub Desktop.
import csv
from collections import defaultdict
dd = defaultdict(list)
with open("BKPF.txt") as bkpf:
dd = csv.DictReader(bkpf)
print(*dd.fieldnames, sep="|")
for e in dd:
print(*e.values())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment