Skip to content

Commit c2a27b4

Browse files
committed
pre commit check
1 parent 4f9b22f commit c2a27b4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pandas/tests/indexes/test_common.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,9 @@ def test_sort_values_invalid_na_position(
464464
reason="Sorting fails due to heterogeneous types in index (int vs str)",
465465
strict=False,
466466
)
467-
def test_sort_values_with_missing(index_with_missing, na_position, request, box_in_series):
467+
def test_sort_values_with_missing(
468+
index_with_missing, na_position, request, box_in_series
469+
):
468470
# GH 35584. Test that sort_values works with missing values,
469471
# sort non-missing and place missing according to na_position
470472

@@ -489,7 +491,6 @@ def test_sort_values_with_missing(index_with_missing, na_position, request, box_
489491
else:
490492
not_na_vals = index_with_missing[index_with_missing.notna()].values
491493

492-
493494
sorted_values = np.sort(not_na_vals)
494495
if na_position == "first":
495496
sorted_values = np.concatenate([[None] * missing_count, sorted_values])
@@ -500,7 +501,9 @@ def test_sort_values_with_missing(index_with_missing, na_position, request, box_
500501
if isinstance(index_with_missing, pd.Series):
501502
expected = pd.Series(sorted_values, dtype=index_with_missing.dtype)
502503
else:
503-
expected = type(index_with_missing)(sorted_values, dtype=index_with_missing.dtype)
504+
expected = type(index_with_missing)(
505+
sorted_values, dtype=index_with_missing.dtype
506+
)
504507

505508
result = index_with_missing.sort_values(na_position=na_position)
506509
if isinstance(index_with_missing, pd.Series):

0 commit comments

Comments
 (0)