diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 145be3e52f2c0..c90645374b2f3 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -95,7 +95,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.DataFrame.groupby \ pandas.DataFrame.sort_values \ pandas.DataFrame.plot.hexbin \ - pandas.DataFrame.plot.line \ + pandas.DataFrame.plot.line RET=$(($RET + $?)) ; echo $MSG "DONE" fi diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index cd6689e9f1ce2..e251bd28245e7 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -213,7 +213,10 @@ class DatetimeArray(dtl.TimelikeOps, dtl.DatelikeOps): # type: ignore[misc] Examples -------- >>> pd.arrays.DatetimeArray._from_sequence( - ... pd.DatetimeIndex(['2023-01-01', '2023-01-02'], freq='D')) + ... pd.DatetimeIndex( + ... ["2023-01-01", "2023-01-02"], freq="D" + ... ) + ... ) ['2023-01-01 00:00:00', '2023-01-02 00:00:00'] Length: 2, dtype: datetime64[ns] diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index a2666cd6cb229..1663a5a78225f 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2124,7 +2124,8 @@ def droplevel(self, level: IndexLabel = 0): Examples -------- >>> mi = pd.MultiIndex.from_arrays( - ... [[1, 2], [3, 4], [5, 6]], names=['x', 'y', 'z']) + ... [[1, 2], [3, 4], [5, 6]], names=['x', 'y', 'z'] + ... ) >>> mi MultiIndex([(1, 3, 5), (2, 4, 6)], diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 25bcc1f307082..6bcfaa6d26fc2 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -1638,7 +1638,8 @@ def _set_names(self, names, *, level=None, validate: bool = True) -> None: Examples -------- >>> mi = pd.MultiIndex.from_arrays( - ... [[1, 2], [3, 4], [5, 6]], names=['x', 'y', 'z']) + ... [[1, 2], [3, 4], [5, 6]], names=['x', 'y', 'z'] + ... ) >>> mi MultiIndex([(1, 3, 5), (2, 4, 6)],