Skip to content

Commit b60572b

Browse files
authored
use keyword-only params in sort_index
in methods where inplace is allowed, non-keyword args will become deprecated soon: pandas-dev/pandas#41506 This does not change any current behavior, but removes a deprecation warning when using the latest pandas version
1 parent 40719db commit b60572b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entsoe/entsoe.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1911,7 +1911,7 @@ def query_generation_per_plant(
19111911
df = df.tz_convert(area.tz)
19121912
# Truncation will fail if data is not sorted along the index in rare
19131913
# cases. Ensure the dataframe is sorted:
1914-
df = df.sort_index(0)
1914+
df = df.sort_index(axis=0)
19151915
df = df.truncate(before=start, after=end)
19161916
return df
19171917

0 commit comments

Comments
 (0)