Skip to content

Commit eee9120

Browse files
CLN: fixed formatting issues
1 parent 09f1cf6 commit eee9120

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

pandas/core/frame.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4977,7 +4977,7 @@ def sort_values(
49774977
inplace=False,
49784978
kind="quicksort",
49794979
na_position="last",
4980-
key = None
4980+
key=None
49814981
):
49824982
inplace = validate_bool_kwarg(inplace, "inplace")
49834983
axis = self._get_axis_number(axis)
@@ -5061,7 +5061,7 @@ def sort_index(
50615061
labels = self._get_axis(axis)
50625062
if key is not None:
50635063
labels = labels.map(key)
5064-
5064+
50655065
# make sure that the axis is lexsorted to start
50665066
# if not we need to reconstruct to get the correct indexer
50675067
labels = labels._sort_levels_monotonic()

pandas/core/series.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3127,7 +3127,7 @@ def sort_values(
31273127
2 d
31283128
0 z
31293129
dtype: object
3130-
3130+
31313131
>>> s = pd.Series(['a', 'B', 'c', 'D', 'e'])
31323132
>>> s.sort_values()
31333133
1 B
@@ -3357,7 +3357,7 @@ def sort_index(
33573357
true_index = index
33583358
if key is not None:
33593359
index = index.map(key)
3360-
3360+
33613361
if level is not None:
33623362
new_index, indexer = index.sortlevel(
33633363
level, ascending=ascending, sort_remaining=sort_remaining

pandas/tests/series/test_sorting.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ def test_sort_index_key_int(self, dtype):
195195
result = series.sort_index(key=lambda x: 2 * x)
196196
assert_series_equal(result, series)
197197

198-
199198
def test_sort_value_key(self):
200199
series = Series(np.array(["Hello", "goodbye"]))
201200

0 commit comments

Comments
 (0)