From 04d9e2480ffcde7222da93f2b3473a7bf6c76d74 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Mon, 11 Apr 2022 19:14:35 -0500 Subject: [PATCH] Fix docstring section headings. --- python/cudf/cudf/core/algorithms.py | 4 ++-- python/cudf/cudf/core/dataframe.py | 2 +- python/cudf/cudf/core/groupby/groupby.py | 2 +- python/cudf/cudf/core/multiindex.py | 4 ++-- python/cudf/cudf/core/series.py | 2 +- python/cudf/cudf/core/single_column_frame.py | 2 +- python/cudf/cudf/utils/cudautils.py | 2 +- python/cudf/cudf/utils/utils.py | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/python/cudf/cudf/core/algorithms.py b/python/cudf/cudf/core/algorithms.py index a2a909968dc..22a5666ef3f 100644 --- a/python/cudf/cudf/core/algorithms.py +++ b/python/cudf/cudf/core/algorithms.py @@ -1,4 +1,4 @@ -# Copyright (c) 2020, NVIDIA CORPORATION. +# Copyright (c) 2020-2022, NVIDIA CORPORATION. from warnings import warn import cupy as cp @@ -21,7 +21,7 @@ def factorize(values, sort=False, na_sentinel=-1, size_hint=None): Value to indicate missing category. Returns - -------- + ------- (labels, cats) : (cupy.ndarray, cupy.ndarray or Index) - *labels* contains the encoded values - *cats* contains the categories in order that the N-th diff --git a/python/cudf/cudf/core/dataframe.py b/python/cudf/cudf/core/dataframe.py index 1b85769b84d..b3beb553187 100644 --- a/python/cudf/cudf/core/dataframe.py +++ b/python/cudf/cudf/core/dataframe.py @@ -1980,7 +1980,7 @@ def update( None : method directly changes calling object Raises - ------- + ------ ValueError - When ``errors`` = 'raise' and there's overlapping non-NA data. - When ``errors`` is not either 'ignore' or 'raise' diff --git a/python/cudf/cudf/core/groupby/groupby.py b/python/cudf/cudf/core/groupby/groupby.py index 0c274911f3d..6b98e82d553 100644 --- a/python/cudf/cudf/core/groupby/groupby.py +++ b/python/cudf/cudf/core/groupby/groupby.py @@ -907,7 +907,7 @@ def corr(self, method="pearson", min_periods=1): to have a valid result. Returns - ---------- + ------- DataFrame Correlation matrix. diff --git a/python/cudf/cudf/core/multiindex.py b/python/cudf/cudf/core/multiindex.py index d80fb00942b..591ec582a3b 100644 --- a/python/cudf/cudf/core/multiindex.py +++ b/python/cudf/cudf/core/multiindex.py @@ -206,7 +206,7 @@ def rename(self, names, inplace=False): ``MultiIndex`` instance Returns - -------- + ------- None or MultiIndex Examples @@ -591,7 +591,7 @@ def isin(self, values, level=None): CuPy array of boolean values. Notes - ------- + ----- When `level` is None, `values` can only be MultiIndex, or a set/list-like tuples. When `level` is provided, `values` can be Index or MultiIndex, diff --git a/python/cudf/cudf/core/series.py b/python/cudf/cudf/core/series.py index 965810a19e6..5bf52ed7520 100644 --- a/python/cudf/cudf/core/series.py +++ b/python/cudf/cudf/core/series.py @@ -2485,7 +2485,7 @@ def isin(self, values): Series of booleans indicating if each element is in values. Raises - ------- + ------ TypeError If values is a string diff --git a/python/cudf/cudf/core/single_column_frame.py b/python/cudf/cudf/core/single_column_frame.py index a71284ddeed..4fcd846e7bc 100644 --- a/python/cudf/cudf/core/single_column_frame.py +++ b/python/cudf/cudf/core/single_column_frame.py @@ -273,7 +273,7 @@ def factorize(self, na_sentinel=-1): Value to indicate missing category. Returns - -------- + ------- (labels, cats) : (cupy.ndarray, cupy.ndarray or Index) - *labels* contains the encoded values - *cats* contains the categories in order that the N-th diff --git a/python/cudf/cudf/utils/cudautils.py b/python/cudf/cudf/utils/cudautils.py index 96b124c27ec..4796402f14d 100755 --- a/python/cudf/cudf/utils/cudautils.py +++ b/python/cudf/cudf/utils/cudautils.py @@ -249,7 +249,7 @@ def compile_udf(udf, type_signature): numpy types with `numba.numpy_support.from_dtype(...)`. Returns - -------- + ------- ptx_code: The compiled CUDA PTX diff --git a/python/cudf/cudf/utils/utils.py b/python/cudf/cudf/utils/utils.py index ed714182576..1de6a1a01ec 100644 --- a/python/cudf/cudf/utils/utils.py +++ b/python/cudf/cudf/utils/utils.py @@ -387,7 +387,7 @@ def search_range(start, stop, x, step=1, side="left"): See description for usage. Returns - -------- + ------- int Insertion position of n.