Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion splearn/rdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def __getitem__(self, index):
if not ascending:
rdd = rdd.sortBy(lambda x_i: x_i[1], ascending)
elif hasattr(index, "__iter__"):
# TODO: check monotoniticity to avoid unnunnecessary sorting
# TODO: check monotoniticity to avoid unnecessary sorting
arg = indices.tolist()
rdd = indexed.filter(lambda x_i: x_i[1] in indices) \
.sortBy(lambda x_i: arg.index(x_i[1]))
Expand Down