Skip to content

Commit

Permalink
Merge pull request #188 from maurerle/maurerle-sort_index
Browse files Browse the repository at this point in the history
use keyword-only params in sort_index
  • Loading branch information
fboerman authored Jul 3, 2022
2 parents 40719db + b60572b commit 7b451d5
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 @@ -1911,7 +1911,7 @@ def query_generation_per_plant(
df = df.tz_convert(area.tz)
# Truncation will fail if data is not sorted along the index in rare
# cases. Ensure the dataframe is sorted:
df = df.sort_index(0)
df = df.sort_index(axis=0)
df = df.truncate(before=start, after=end)
return df

Expand Down

0 comments on commit 7b451d5

Please sign in to comment.