Skip to content

Commit 1ae02ea

Browse files
committed
Fixups
1 parent f1da7d2 commit 1ae02ea

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

ci/code_checks.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
6969
"$BASE_DIR"/scripts/validate_docstrings.py \
7070
--format=actions \
7171
-i ES01 `# For now it is ok if docstrings are missing the extended summary` \
72+
-i "pandas.DataFrame.from_arrow SA01,EX01" \
7273
-i "pandas.Series.dt PR01" `# Accessors are implemented as classes, but we do not document the Parameters section` \
7374
-i "pandas.Period.freq GL08" \
7475
-i "pandas.Period.ordinal GL08" \
@@ -165,6 +166,8 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
165166
-i "pandas.tseries.offsets.DateOffset.is_on_offset GL08" \
166167
-i "pandas.tseries.offsets.DateOffset.n GL08" \
167168
-i "pandas.tseries.offsets.DateOffset.normalize GL08" \
169+
-i "pandas.tseries.offsets.DateOffset.rollback SA01,EX01" \
170+
-i "pandas.tseries.offsets.DateOffset.rollforward SA01,EX01" \
168171
-i "pandas.tseries.offsets.Day.freqstr SA01" \
169172
-i "pandas.tseries.offsets.Day.is_on_offset GL08" \
170173
-i "pandas.tseries.offsets.Day.n GL08" \

doc/source/whatsnew/v3.0.0.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,8 +1206,8 @@ Missing
12061206
- Bug in :meth:`MultiIndex.fillna` error message was referring to ``isna`` instead of ``fillna`` (:issue:`60974`)
12071207
- Bug in :meth:`NA.__and__`, :meth:`NA.__or__` and :meth:`NA.__xor__` when operating with ``np.bool_`` objects (:issue:`58427`)
12081208
- Bug in ``divmod`` between :class:`NA` and ``Int64`` dtype objects (:issue:`62196`)
1209-
- Fixed bug in :meth:`Series.replace` and :meth:`DataFrame.replace` when trying to replace :class:`NA` values in a :class:`Float64Dtype` object with ``np.nan``; this now works with ``pd.set_option("mode.nan_is_na", False)`` and is irrelevant otherwise (:issue:`55127`)
1210-
- Fixed bug in :meth:`Series.replace` and :meth:`DataFrame.replace` when trying to replace :class:`np.nan` values in a :class:`Int64Dtype` object with :class:`NA`; this is now a no-op with ``pd.set_option("mode.nan_is_na", False)`` and is irrelevant otherwise (:issue:`51237`)
1209+
- Fixed bug in :meth:`Series.replace` and :meth:`DataFrame.replace` when trying to replace :class:`NA` values in a :class:`Float64Dtype` object with ``np.nan``; this now works with ``pd.set_option("mode.distinguish_nan_and_na", True)`` and is irrelevant otherwise (:issue:`55127`)
1210+
- Fixed bug in :meth:`Series.replace` and :meth:`DataFrame.replace` when trying to replace :class:`np.nan` values in a :class:`Int64Dtype` object with :class:`NA`; this is now a no-op with ``pd.set_option("mode.distinguish_nan_and_na", True)`` and is irrelevant otherwise (:issue:`51237`)
12111211

12121212
MultiIndex
12131213
^^^^^^^^^^

pandas/_libs/tslibs/offsets.pyx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,11 @@ cdef class BaseOffset:
687687
"""
688688
Roll provided date backward to next offset only if not on offset.
689689

690+
Parameters
691+
----------
692+
dt : datetime or Timestamp
693+
Timestamp to rollback.
694+
690695
Returns
691696
-------
692697
TimeStamp
@@ -704,6 +709,11 @@ cdef class BaseOffset:
704709
"""
705710
Roll provided date forward to next offset only if not on offset.
706711

712+
Parameters
713+
----------
714+
dt : datetime or Timestamp
715+
Timestamp to rollback.
716+
707717
Returns
708718
-------
709719
TimeStamp

pandas/core/frame.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1866,7 +1866,6 @@ def from_arrow(
18661866
Returns
18671867
-------
18681868
DataFrame
1869-
18701869
"""
18711870
pa = import_optional_dependency("pyarrow", min_version="14.0.0")
18721871
if not isinstance(data, pa.Table):

pandas/core/strings/accessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3780,7 +3780,7 @@ def casefold(self):
37803780
Series.str.isupper : Check whether all characters are uppercase.
37813781
37823782
Examples
3783-
------------
3783+
--------
37843784
The ``s5.str.isascii`` method checks for whether all characters are ascii
37853785
characters, which includes digits 0-9, capital and lowercase letters A-Z,
37863786
and some other special characters.

0 commit comments

Comments
 (0)