From d3f5678d2efa24502204c58da384b1705e383d47 Mon Sep 17 00:00:00 2001 From: Michael Wang Date: Thu, 21 Apr 2022 13:39:58 -0700 Subject: [PATCH] Add docstrings and fix review commit --- python/cudf/cudf/_lib/merge.pyx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/python/cudf/cudf/_lib/merge.pyx b/python/cudf/cudf/_lib/merge.pyx index 093ea3d2c03..0552fcbce0f 100644 --- a/python/cudf/cudf/_lib/merge.pyx +++ b/python/cudf/cudf/_lib/merge.pyx @@ -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))