This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xml.etree.ElementTree as ET | |
import pandas as pd | |
from sqlalchemy import create_engine | |
from sqlalchemy.orm import sessionmaker, scoped_session | |
# do this if running in jupyter | |
# pd.set_option('display.max_columns', None) | |
# convert XML to dataframe (assumes only one layer of nesting) | |
def xml2df(xml_data): |