Skip to content

Exception when trying loop over children of lxml.ElementTree #74

@turbofish-pk

Description

@turbofish-pk

In order to avoid the exception, something like below must be implemented

Line 98 in fred.py should be corrected like this

    # info = pd.Series(root.getchildren()[0].attrib)
    
    info = pd.Series(root.findall('.//series')[0].attrib)

the same with line 135

    # for child in root.getchildren():
    
    for child in root:

Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions