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

Changed parsing from beautifulsoup to lxml #232

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
changed docStatus as pd column to lowercase to prevent change in df
  • Loading branch information
jvanelteren committed Jan 13, 2023
commit 43484372a65938e0b34f4d7877f2173f895bd213
2 changes: 1 addition & 1 deletion entsoe/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -973,5 +973,5 @@ def _outage_parser(xml_file: bytes, headers, ts_func) -> pd.DataFrame:
# ts_func may break since it will no longer receive a soup timeseries but a lxml element
for t in ts_func(ts):
d.append(row + t)
df = pd.DataFrame.from_records(d, columns=headers)
df = pd.DataFrame.from_records(d, columns=[h.lower() for h in headers])
return df