Skip to content

Commit b6587fc

Browse files
committed
Refactor code based on black
1 parent 276478a commit b6587fc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pandas/core/frame.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5555,8 +5555,8 @@ def sort_values( # type: ignore[override]
55555555

55565556
if ignore_index:
55575557
new_data.set_axis(
5558-
self._get_block_manager_axis(axis),
5559-
ibase.default_index(len(indexer)))
5558+
self._get_block_manager_axis(axis), ibase.default_index(len(indexer))
5559+
)
55605560

55615561
result = self._constructor(new_data)
55625562
if inplace:

pandas/tests/frame/methods/test_sort_values.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,9 @@ def test_sort_values_reshaping(self):
588588

589589
random_state = np.random.RandomState(seed=42)
590590
test_dict = {
591-
int((i - n_cols / 2) % n_cols + 1):
592-
random_state.randint(rand_low, rand_high, size=(n_rows))
591+
int((i - n_cols / 2) % n_cols + 1): random_state.randint(
592+
rand_low, rand_high, size=(n_rows)
593+
)
593594
for i in range(n_cols)
594595
}
595596
df = DataFrame(test_dict)

0 commit comments

Comments
 (0)