MCPcopy
hub / github.com/pandas-dev/pandas / _transform_doc

Method _transform_doc

pandas/io/xml.py:661–674  ·  view source on GitHub ↗

Transform original tree using stylesheet. This method will transform original xml using XSLT script into am ideally flatter xml document for easier parsing and migration to Data Frame.

(self)

Source from the content-addressed store, hash-verified

659 return document
660
661 def _transform_doc(self) -> etree._XSLTResultTree:
662 """
663 Transform original tree using stylesheet.
664
665 This method will transform original xml using XSLT script into
666 am ideally flatter xml document for easier parsing and migration
667 to Data Frame.
668 """
669 from lxml.etree import XSLT
670
671 transformer = XSLT(self.xsl_doc)
672 new_doc = transformer(self.xml_doc)
673
674 return new_doc
675
676
677def get_data_from_filepath(

Callers 1

parse_dataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected