Skip to content

selimonat/xml2dataframe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

xml2dataframe

Reads xml data into a python DataFrame.

Converts an XML file to Pandas Data Frame.

Example:

xml_path      = "/Users/onat/export.xml";
from XML2DataFrame import XML2DataFrame;
x = XML2DataFrame(xml_path)
x.process_data()

If you are specifically interested to convert a given tag and ignore others, use it with an input argument as in

x.process_data("Record")

This will only consider those elements.

Possible Improvements:

Currently, when children's attributes in an xml file has the same attributes as parents, the values are overwritten. For this reason, children elements are not processed. This is recursively implemented in the current version, however commented out.

About

Reads xml data into a python DataFrame.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages