Skip to content

Commit 794fd78

Browse files
committed
PEP8
1 parent d7bf220 commit 794fd78

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/core/frame.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -3359,8 +3359,9 @@ def sort_index(self, axis=0, level=None, ascending=True, inplace=False,
33593359
inplace = validate_bool_kwarg(inplace, 'inplace')
33603360
# 10726
33613361
if by is not None:
3362-
warnings.warn("by argument to sort_index is deprecated, please use "
3363-
".sort_values(by=...)", FutureWarning, stacklevel=2)
3362+
warnings.warn("by argument to sort_index is deprecated, "
3363+
"please use .sort_values(by=...)",
3364+
FutureWarning, stacklevel=2)
33643365
if level is not None:
33653366
raise ValueError("unable to simultaneously sort by and level")
33663367
return self.sort_values(by, axis=axis, ascending=ascending,

0 commit comments

Comments
 (0)