From e9e8779e356c10e8fc0fd7912428b7bc08cf7525 Mon Sep 17 00:00:00 2001 From: Varun Shrivastava Date: Sat, 11 Sep 2021 11:47:37 +0530 Subject: [PATCH 1/3] Updated code_checks.sh --- ci/code_checks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 251f450840ea9..82fb7f4ea3af6 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -229,7 +229,7 @@ fi ### DOCSTRINGS ### if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then - MSG='Validate docstrings (GL03, GL04, GL05, GL06, GL07, GL09, GL10, SS01, SS02, SS04, SS05, PR03, PR04, PR05, PR10, EX04, RT01, RT04, RT05, SA02, SA03)' ; echo $MSG + MSG='Validate docstrings (GL03, GL04, GL05, GL06, GL07, GL09, GL10, SS01, SS02, SS04, SS05, PR03, PR04, PR05, PR06, PR10, EX04, RT01, RT04, RT05, SA02, SA03)' ; echo $MSG $BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=GL03,GL04,GL05,GL06,GL07,GL09,GL10,SS02,SS04,SS05,PR03,PR04,PR05,PR10,EX04,RT01,RT04,RT05,SA02,SA03 RET=$(($RET + $?)) ; echo $MSG "DONE" From 081b5553f37fac6fd1486f1a8e0a6205f58f916b Mon Sep 17 00:00:00 2001 From: Varun Shrivastava Date: Tue, 28 Sep 2021 23:18:54 +0530 Subject: [PATCH 2/3] Fixed Issue No. #43755 --- ci/code_checks.sh | 4 ++-- pandas/core/arrays/sparse/array.py | 3 ++- pandas/core/frame.py | 2 +- pandas/core/tools/numeric.py | 3 ++- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 68ad4d2efb37b..514fc4103fa78 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -89,8 +89,8 @@ fi ### DOCSTRINGS ### if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then - MSG='Validate docstrings (GL02, GL03, GL04, GL05, GL06, GL07, GL09, GL10, SS01, SS02, SS04, SS05, PR03, PR04, PR05, PR06, PR10, EX04, RT01, RT04, RT05, SA02, SA03)' ; echo $MSG - $BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=GL02,GL03,GL04,GL05,GL06,GL07,GL09,GL10,SS02,SS04,SS05,PR03,PR04,PR05,PR06,PR10,EX04,RT01,RT04,RT05,SA02,SA03 + MSG='Validate docstrings (GL01, GL02, GL03, GL04, GL05, GL06, GL07, GL09, GL10, SS01, SS02, SS03, SS04, SS05, PR03, PR04, PR05, PR06, PR08, PR09, PR10, EX04, RT01, RT04, RT05, SA02, SA03)' ; echo $MSG + $BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=GL01,GL02,GL03,GL04,GL05,GL06,GL07,GL09,GL10,SS02,SS03,SS04,SS05,PR03,PR04,PR05,PR06,PR08,PR09,PR10,EX04,RT01,RT04,RT05,SA02,SA03 RET=$(($RET + $?)) ; echo $MSG "DONE" fi diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py index 77142ef450487..edaf05739893e 100644 --- a/pandas/core/arrays/sparse/array.py +++ b/pandas/core/arrays/sparse/array.py @@ -280,7 +280,8 @@ class SparseArray(OpsMixin, PandasObject, ExtensionArray): 3. ``data.dtype.fill_value`` if `fill_value` is None and `dtype` is not a ``SparseDtype`` and `data` is a ``SparseArray``. - kind : {'integer', 'block'}, default 'integer' + kind : str + Can be 'integer' or 'block', default is 'integer'. The type of storage for sparse locations. * 'block': Stores a `block` and `block_length` for each diff --git a/pandas/core/frame.py b/pandas/core/frame.py index d9264e465dbef..a8a062a0bc2dd 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -10563,7 +10563,7 @@ def isin(self, values) -> DataFrame: When ``values`` is a Series or DataFrame the index and column must match. Note that 'falcon' does not match based on the number of legs - in df2. + in other. >>> other = pd.DataFrame({'num_legs': [8, 2], 'num_wings': [0, 2]}, ... index=['spider', 'falcon']) diff --git a/pandas/core/tools/numeric.py b/pandas/core/tools/numeric.py index 7d2bb75934c33..26197e1ac4847 100644 --- a/pandas/core/tools/numeric.py +++ b/pandas/core/tools/numeric.py @@ -48,7 +48,8 @@ def to_numeric(arg, errors="raise", downcast=None): - If 'raise', then invalid parsing will raise an exception. - If 'coerce', then invalid parsing will be set as NaN. - If 'ignore', then invalid parsing will return the input. - downcast : {'integer', 'signed', 'unsigned', 'float'}, default None + downcast : str, default None + Can be 'integer', 'signed', 'unsigned', or 'float'. If not None, and if the data has been successfully cast to a numerical dtype (or if the data was numeric to begin with), downcast that resulting data to the smallest numerical dtype From 05cddd2d817630ea26a22fc531984fccf82d3bec Mon Sep 17 00:00:00 2001 From: Marco Edward Gorelli Date: Sun, 5 Dec 2021 14:38:58 +0000 Subject: [PATCH 3/3] Update ci/code_checks.sh --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 81c8ef19e7a51..6335eb4b14007 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -95,7 +95,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Validate docstrings (GL01, GL02, GL03, GL04, GL05, GL06, GL07, GL09, GL10, SS01, SS02, SS03, SS04, SS05, PR03, PR04, PR05, PR06, PR08, PR09, PR10, EX04, RT01, RT04, RT05, SA02, SA03)' ; echo $MSG $BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=GL01,GL02,GL03,GL04,GL05,GL06,GL07,GL09,GL10,SS02,SS03,SS04,SS05,PR03,PR04,PR05,PR06,PR08,PR09,PR10,EX04,RT01,RT04,RT05,SA02,SA03 - RET=$(($RET + $?)) ; echo $MSG "DONE" fi