Skip to content

Commit

Permalink
Add docstrings and fix review commit
Browse files Browse the repository at this point in the history
  • Loading branch information
isVoid committed Apr 21, 2022
1 parent 277a2c2 commit d3f5678
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/cudf/cudf/_lib/merge.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ def merge_sorted(
bool ascending=True,
str na_position="last",
):
"""Merge multiple lists of lexicographically sorted columns into one list.
`input_columns` is a list of lists of columns to be merged.
"""
cdef vector[libcudf_types.size_type] c_column_keys = key_columns_indices
cdef vector[table_view] c_input_tables
cdef vector[libcudf_types.order] c_column_order
cdef vector[libcudf_types.null_order] c_null_precedence

c_input_tables.reserve(len(list_of_columns))
for source_columns in list_of_columns:
c_input_tables.reserve(len(input_columns))
for source_columns in input_columns:
c_input_tables.push_back(
table_view_from_columns(source_columns))

Expand Down

0 comments on commit d3f5678

Please sign in to comment.