Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
python-pk opened this issue Oct 1, 2024 · 0 comments
Open

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

python-pk opened this issue Oct 1, 2024 · 0 comments

Comments

@python-pk
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant