Skip to content

Instantly share code, notes, and snippets.

View atraining's full-sized avatar
🚀

Christopher Helm atraining

🚀
View GitHub Profile
@atraining
atraining / combine_json_to_csv.py
Created December 9, 2021 08:01
Combine multiple json files into one csv
import glob
import json
from copy import deepcopy
import pandas
def cross_join(left, right):
new_rows = [] if right else left
for left_row in left:

Invoice

Invoice Number

Invoice Date

Order ID (Prio)

Supplier Order ID (Prio)

Net Amount

Gross Amount

Due Date

allowances/charges (skonto, freight)

Type (invoice or credit note)