Skip to content

Commit

Permalink
Bugfix ValueError: truncate requires a sorted index
Browse files Browse the repository at this point in the history
  • Loading branch information
tdekelver-bd authored Feb 5, 2024
1 parent b6791e3 commit c04a055
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 c04a055

Please sign in to comment.