Skip to content

Instantly share code, notes, and snippets.

@hsyyid
Created August 25, 2020 19:48
Show Gist options
  • Save hsyyid/a2b0dcfc9b6401ec8f131df2cc3e92c8 to your computer and use it in GitHub Desktop.
Save hsyyid/a2b0dcfc9b6401ec8f131df2cc3e92c8 to your computer and use it in GitHub Desktop.
import ast
import gluestick as gs
import pandas as pd
# standard directory for hotglue
ROOT_DIR = "./sync-output"
# Read input data
input_data = gs.read_csv_folder(ROOT_DIR,
index_cols={'Invoice': 'DocNumber'},
converters={'Invoice': {'Line': ast.literal_eval, 'CustomField': ast.literal_eval,
'Categories': ast.literal_eval}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment