Skip to content

Commit 41e8ac4

Browse files
committed
pep
1 parent 4af6c00 commit 41e8ac4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/algorithms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -944,13 +944,13 @@ def select_n_frame(frame, columns, n, method, keep):
944944
-------
945945
nordered : DataFrame
946946
"""
947-
from pandas.core.series import Series
948947
if not is_list_like(columns):
949948
columns = [columns]
950949
columns = list(columns)
951950
ascending = method == 'nsmallest'
952951

953-
# Below we save and reset the index incase index contains duplicates
952+
# Below we save and reset the index
953+
# in case index contains duplicates
954954
original_index = frame.index
955955
frame = frame.reset_index(drop=True)
956956

0 commit comments

Comments
 (0)