Skip to content

Commit 25934d6

Browse files
authored
DOC: Copy edit 3.0 whatsnew (#63284)
1 parent 311f92e commit 25934d6

File tree

9 files changed

+143
-136
lines changed

9 files changed

+143
-136
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/reference/frame.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ Serialization / IO / conversion
360360
.. autosummary::
361361
:toctree: api/
362362

363+
DataFrame.from_arrow
363364
DataFrame.from_dict
364365
DataFrame.from_records
365366
DataFrame.to_orc

doc/source/reference/indexing.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ Categorical components
189189
.. autosummary::
190190
:toctree: api/
191191

192+
CategoricalIndex.append
192193
CategoricalIndex.codes
193194
CategoricalIndex.categories
194195
CategoricalIndex.ordered

doc/source/reference/offset_frequency.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ Methods
4040
DateOffset.is_quarter_end
4141
DateOffset.is_year_start
4242
DateOffset.is_year_end
43+
DateOffset.rollback
44+
DateOffset.rollforward
4345

4446
BusinessDay
4547
-----------

doc/source/reference/series.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ strings and apply several methods to it. These can be accessed like
424424
Series.str.fullmatch
425425
Series.str.get
426426
Series.str.index
427+
Series.str.isascii
427428
Series.str.join
428429
Series.str.len
429430
Series.str.ljust

doc/source/whatsnew/v3.0.0.rst

Lines changed: 124 additions & 134 deletions
Large diffs are not rendered by default.

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)