Skip to content

Commit

Permalink
Merge pull request #300 from tdekelver-bd/master
Browse files Browse the repository at this point in the history
Bugfix ValueError: truncate requires a sorted index
  • Loading branch information
fboerman authored Feb 5, 2024
2 parents b6791e3 + c04a055 commit 30330d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entsoe/entsoe.py
Original file line number Diff line number Diff line change
Expand Up @@ -2132,7 +2132,7 @@ def query_physical_crossborder_allborders(self, country_code: Union[Area, str],
continue
im.name = neighbour
imports.append(im)
df = pd.concat(imports, axis=1)
df = pd.concat(imports, axis=1, sort=True)
# drop columns that contain only zero's
df = df.loc[:, (df != 0).any(axis=0)]
df = df.tz_convert(area.tz)
Expand Down

0 comments on commit 30330d6

Please sign in to comment.