Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

```query_crossborder_flows``` fails in August 2021 for `DE`->`NL`

See original GitHub issue


There seems to be a problem with crossborder flows query_crossborder_flows. In particular, querying over DE -> NL crossborder flows over summer 2021, there is a bug in august. I assume it happens because the frequency in July is hourly data, and in September its quarterly (15min) data. Probably somewhere in august it switches from hourly to quarterly, which in turn messes up the dataframe and causes the error


pandas: 1.3.4
entsoe-py: 0.4.1
python: 3.9.7
os: macOS monterey 12.0.1


July 2021: Correct

start = pd.Timestamp(str(int(2021_07_01)), tz='Europe/Amsterdam')
end = pd.Timestamp(str(int(2021_08_01)), tz='Europe/Amsterdam')
client.query_crossborder_flows("DE", "NL", start=start, end=end)

returns the expected output:

2021-07-01 00:00:00+02:00    1110.0
2021-07-01 01:00:00+02:00     925.0
2021-07-01 02:00:00+02:00     540.0
2021-07-01 03:00:00+02:00     743.0
2021-07-01 04:00:00+02:00     538.0
2021-07-31 19:00:00+02:00    1437.0
2021-07-31 20:00:00+02:00    1266.0
2021-07-31 21:00:00+02:00    2218.0
2021-07-31 22:00:00+02:00    2171.0
2021-07-31 23:00:00+02:00    2313.0
Freq: 60T, Length: 744, dtype: float64

September 2021: Correct


start = pd.Timestamp(str(int(2021_09_01)), tz='Europe/Amsterdam')
end = pd.Timestamp(str(int(2021_10_01)), tz='Europe/Amsterdam')
client.query_crossborder_flows("DE", "NL", start=start, end=end)

returns the expected output:

2021-09-01 00:00:00+02:00    2579.0
2021-09-01 00:15:00+02:00    2430.0
2021-09-01 00:30:00+02:00    2378.0
2021-09-01 00:45:00+02:00    2281.0
2021-09-01 01:00:00+02:00    2287.0
2021-09-30 22:45:00+02:00     843.0
2021-09-30 23:00:00+02:00    1210.0
2021-09-30 23:15:00+02:00    1191.0
2021-09-30 23:30:00+02:00    1233.0
2021-09-30 23:45:00+02:00    1233.0
Freq: 15T, Length: 2880, dtype: float64

August 2021: Problem

However this one fails:

start = pd.Timestamp(str(int(2021_08_01)), tz='Europe/Amsterdam')
end = pd.Timestamp(str(int(2021_09_01)), tz='Europe/Amsterdam')
client.query_crossborder_flows("DE", "NL", start=start, end=end)


ValueError: Length mismatch: Expected axis has 22 elements, new values have 85 elements

Lastly, I just wanted to thank all contributors of this library, it has saved me enormous amount of time and headaches I had working with the entsoe XML API. Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15

github_iconTop GitHub Comments

fboermancommented, Jan 14, 2022

hi @MattEwen and @charelF the issue is now fixed by ENTSO-E for all cases we discussed here 😄

fboermancommented, Jan 6, 2022

hi @MattEwen I have received a reply it is fixed now on dutch borders but the other borders they are sill looking into.

Read more comments on GitHub >

github_iconTop Results From Across the Web

After Congress Fails to Add Dental Coverage, Medicare ...
Proposed changes in Medicare rules could soon pave the way for a significant expansion in Medicare-covered dental services, while falling ...
Read more >
Virginia Board of Dentistry- Guidance Documents
60-5 Policy on Auditing Continuing Education and Sanctioning for Failure to Meet the Requirements, effective August 5, 2021.
Read more >
Research reveals impact of COVID-19 on dental hygienists
When the study concluded in August 2021, that number decreased to 4.9%. However, the pandemic has impacted staffing levels in industries across ...
Read more >
OCR Settles Three Cases with Dental Practices for Patient ...
OCR received a complaint on August 8, 2020, alleging that FDC failed to provide a former patient with timely access to her complete...
Read more >
Disciplinary Actions: Consumer Information - Maine Board of ...
Russell Collett, a dentist who surrendered his license with the Board of Dental Practice effective August 30, 2021, admitted to violating a prior...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found