diff --git a/python/cudf/cudf/io/orc.py b/python/cudf/cudf/io/orc.py index cd72a60b182..9b8e56f4f10 100644 --- a/python/cudf/cudf/io/orc.py +++ b/python/cudf/cudf/io/orc.py @@ -294,6 +294,18 @@ def read_orc( """{docstring}""" from cudf import DataFrame + if skiprows is not None: + warnings.warn( + "skiprows is deprecated and will be removed.", + FutureWarning, + ) + + if num_rows is not None: + warnings.warn( + "num_rows is deprecated and will be removed.", + FutureWarning, + ) + # Multiple sources are passed as a list. If a single source is passed, # wrap it in a list for unified processing downstream. if not is_list_like(filepath_or_buffer): diff --git a/python/cudf/cudf/utils/ioutils.py b/python/cudf/cudf/utils/ioutils.py index f915da5fe69..bb6716c1c4a 100644 --- a/python/cudf/cudf/utils/ioutils.py +++ b/python/cudf/cudf/utils/ioutils.py @@ -378,8 +378,10 @@ concatenated with index ignored. skiprows : int, default None If not None, the number of rows to skip from the start of the file. + This parameter is deprecated. num_rows : int, default None If not None, the total number of rows to read. + This parameter is deprecated. use_index : bool, default True If True, use row index if available for faster seeking. use_python_file_object : boolean, default True