From ce0d6f9c42d2d581242bbfa65ca87479788030b3 Mon Sep 17 00:00:00 2001 From: taytzehao Date: Tue, 13 Apr 2021 21:14:15 +0800 Subject: [PATCH 01/11] Update missing.py --- pandas/core/missing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/missing.py b/pandas/core/missing.py index 8849eb0670faa..d12d816d6ffa5 100644 --- a/pandas/core/missing.py +++ b/pandas/core/missing.py @@ -524,7 +524,7 @@ def _from_derivatives(xi, yi, x, order=None, der=0, extrapolate=False): Parameters ---------- - xi : array_like + xi : array-like sorted 1D array of x-coordinates yi : array_like or list of array-likes yi[i][j] is the j-th derivative known at xi[i] From 698f23ca9ae6efdc31860d832da9aad75860eaa4 Mon Sep 17 00:00:00 2001 From: taytzehao Date: Tue, 13 Apr 2021 21:14:46 +0800 Subject: [PATCH 02/11] Update missing.py --- pandas/core/missing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/missing.py b/pandas/core/missing.py index d12d816d6ffa5..642c7666a4894 100644 --- a/pandas/core/missing.py +++ b/pandas/core/missing.py @@ -526,9 +526,9 @@ def _from_derivatives(xi, yi, x, order=None, der=0, extrapolate=False): ---------- xi : array-like sorted 1D array of x-coordinates - yi : array_like or list of array-likes + yi : array-like or list of array-likes yi[i][j] is the j-th derivative known at xi[i] - order: None or int or array_like of ints. Default: None. + order: None or int or array-like of ints. Default: None. Specifies the degree of local polynomials. If not None, some derivatives are ignored. der : int or list From 10c653bbaf8fdbb9c21d3f1cb94348a814083734 Mon Sep 17 00:00:00 2001 From: taytzehao Date: Tue, 13 Apr 2021 21:29:48 +0800 Subject: [PATCH 03/11] Update multi.py --- pandas/core/indexes/multi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 953796a35db7c..3ea212234edc0 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -3893,7 +3893,7 @@ def maybe_droplevels(index: Index, key) -> Index: return index -def _coerce_indexer_frozen(array_like, categories, copy: bool = False) -> np.ndarray: +def _coerce_indexer_frozen(array-like, categories, copy: bool = False) -> np.ndarray: """ Coerce the array_like indexer to the smallest integer dtype that can encode all of the given categories. From b2ac4c6bad1bfa9eb7a95dd86d6650a30fa53eeb Mon Sep 17 00:00:00 2001 From: taytzehao Date: Tue, 13 Apr 2021 21:31:24 +0800 Subject: [PATCH 04/11] Update base.py --- pandas/core/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/base.py b/pandas/core/base.py index 05ec9d543976a..13271c227fea6 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -1159,13 +1159,13 @@ def factorize(self, sort: bool = False, na_sentinel: Optional[int] = -1): Parameters ---------- - value : array_like + value : array-like Values to insert into `self`. side : {{'left', 'right'}}, optional If 'left', the index of the first suitable location found is given. If 'right', return the last such index. If there is no suitable index, return either 0 or N (where N is the length of `self`). - sorter : 1-D array_like, optional + sorter : 1-D array-like, optional Optional array of integer indices that sort `self` into ascending order. They are typically the result of ``np.argsort``. From 530cd7ea260322f902ce8dc183d7cef6c2ff5181 Mon Sep 17 00:00:00 2001 From: taytzehao Date: Tue, 13 Apr 2021 21:35:52 +0800 Subject: [PATCH 05/11] Update base.py --- pandas/core/arrays/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index 933b829e0b29f..fd9a7ed519140 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -826,7 +826,7 @@ def searchsorted(self, value, side="left", sorter=None): Parameters ---------- - value : array_like + value : array-like Values to insert into `self`. side : {'left', 'right'}, optional If 'left', the index of the first suitable location found is given. From 72f46fd55bf57aa3c3fd70d4f3c9cde9fc0bc664 Mon Sep 17 00:00:00 2001 From: taytzehao Date: Tue, 13 Apr 2021 21:36:21 +0800 Subject: [PATCH 06/11] Update base.py --- pandas/core/arrays/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index fd9a7ed519140..be9b57f698a6f 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -832,7 +832,7 @@ def searchsorted(self, value, side="left", sorter=None): If 'left', the index of the first suitable location found is given. If 'right', return the last such index. If there is no suitable index, return either 0 or N (where N is the length of `self`). - sorter : 1-D array_like, optional + sorter : 1-D array-like, optional Optional array of integer indices that sort array a into ascending order. They are typically the result of argsort. From a8b7634d65391f71e3fa1b8314c02dfe0aa7b1bb Mon Sep 17 00:00:00 2001 From: taytzehao Date: Tue, 13 Apr 2021 21:37:41 +0800 Subject: [PATCH 07/11] Update algorithms.py --- pandas/core/algorithms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 9e2dd846f0379..486e424003103 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -1546,13 +1546,13 @@ def searchsorted(arr, value, side="left", sorter=None) -> np.ndarray: Input array. If `sorter` is None, then it must be sorted in ascending order, otherwise `sorter` must be an array of indices that sort it. - value : array_like + value : array-like Values to insert into `arr`. side : {'left', 'right'}, optional If 'left', the index of the first suitable location found is given. If 'right', return the last such index. If there is no suitable index, return either 0 or N (where N is the length of `self`). - sorter : 1-D array_like, optional + sorter : 1-D array-like, optional Optional array of integer indices that sort array a into ascending order. They are typically the result of argsort. From 20d881191a2bdd598fa61a1fa10545820c112c21 Mon Sep 17 00:00:00 2001 From: taytzehao Date: Tue, 13 Apr 2021 21:39:30 +0800 Subject: [PATCH 08/11] Update base.py --- pandas/core/indexes/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index a0727500ecc81..aaea5976a2acf 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -6010,8 +6010,8 @@ def any(self, *args, **kwargs): Returns ------- - any : bool or array_like (if axis is specified) - A single element array_like may be converted to bool. + any : bool or array-like (if axis is specified) + A single element array-like may be converted to bool. See Also -------- @@ -6054,7 +6054,7 @@ def all(self, *args, **kwargs): Returns ------- - all : bool or array_like (if axis is specified) + all : bool or array-like (if axis is specified) A single element array_like may be converted to bool. See Also From fbb189b9dff41a485f5872984c00c5acb2f0584b Mon Sep 17 00:00:00 2001 From: taytzehao Date: Tue, 13 Apr 2021 21:40:23 +0800 Subject: [PATCH 09/11] Update blocks.py --- pandas/core/internals/blocks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 603cc6a6ff1f2..14052894c8ecc 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1280,7 +1280,7 @@ def _unstack(self, unstacker, fill_value, new_placement): ------- blocks : list of Block New blocks of unstacked values. - mask : array_like of bool + mask : array-like of bool The mask of columns of `blocks` we should keep. """ new_values, mask = unstacker.get_new_values( From 8a380e771df36841032d7a92e28e928b4e19ff62 Mon Sep 17 00:00:00 2001 From: taytzehao Date: Tue, 13 Apr 2021 21:46:18 +0800 Subject: [PATCH 10/11] Update _core.py --- pandas/plotting/_core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index 55097054fec88..783e2274f9971 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -427,7 +427,7 @@ def hist_frame( y : label or position, optional Allows plotting of one column versus another. If not specified, all numerical columns are used. - color : str, array_like, or dict, optional + color : str, array-like, or dict, optional The color for each of the DataFrame's columns. Possible values are: - A single color string referred to by name, RGB or RGBA code, @@ -1568,7 +1568,7 @@ def scatter(self, x, y, s=None, c=None, **kwargs): y : int or str The column name or column position to be used as vertical coordinates for each point. - s : str, scalar or array_like, optional + s : str, scalar or array-like, optional The size of each point. Possible values are: - A string with the name of the column to be used for marker's size. From 44aa1ea871c12b59f8045a7c6b663d7fb388d860 Mon Sep 17 00:00:00 2001 From: taytzehao Date: Tue, 13 Apr 2021 21:50:52 +0800 Subject: [PATCH 11/11] Update replace.py --- pandas/core/array_algos/replace.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/array_algos/replace.py b/pandas/core/array_algos/replace.py index 201b9fdcc51cc..ac34ae7e56036 100644 --- a/pandas/core/array_algos/replace.py +++ b/pandas/core/array_algos/replace.py @@ -45,14 +45,14 @@ def compare_or_regex_search( a: ArrayLike, b: Union[Scalar, Pattern], regex: bool, mask: np.ndarray ) -> Union[ArrayLike, bool]: """ - Compare two array_like inputs of the same shape or two scalar values + Compare two array-like inputs of the same shape or two scalar values Calls operator.eq or re.search, depending on regex argument. If regex is True, perform an element-wise regex matching. Parameters ---------- - a : array_like + a : array-like b : scalar or regex pattern regex : bool mask : np.ndarray[bool]