Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
"$BASE_DIR"/scripts/validate_docstrings.py \
--format=actions \
-i ES01 `# For now it is ok if docstrings are missing the extended summary` \
-i "pandas.DataFrame.from_arrow SA01,EX01" \
-i "pandas.Series.dt PR01" `# Accessors are implemented as classes, but we do not document the Parameters section` \
-i "pandas.Period.freq GL08" \
-i "pandas.Period.ordinal GL08" \
Expand Down Expand Up @@ -165,6 +166,8 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.tseries.offsets.DateOffset.is_on_offset GL08" \
-i "pandas.tseries.offsets.DateOffset.n GL08" \
-i "pandas.tseries.offsets.DateOffset.normalize GL08" \
-i "pandas.tseries.offsets.DateOffset.rollback SA01,EX01" \
-i "pandas.tseries.offsets.DateOffset.rollforward SA01,EX01" \
-i "pandas.tseries.offsets.Day.freqstr SA01" \
-i "pandas.tseries.offsets.Day.is_on_offset GL08" \
-i "pandas.tseries.offsets.Day.n GL08" \
Expand Down
1 change: 1 addition & 0 deletions doc/source/reference/frame.rst
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ Serialization / IO / conversion
.. autosummary::
:toctree: api/

DataFrame.from_arrow
DataFrame.from_dict
DataFrame.from_records
DataFrame.to_orc
Expand Down
1 change: 1 addition & 0 deletions doc/source/reference/indexing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ Categorical components
.. autosummary::
:toctree: api/

CategoricalIndex.append
CategoricalIndex.codes
CategoricalIndex.categories
CategoricalIndex.ordered
Expand Down
2 changes: 2 additions & 0 deletions doc/source/reference/offset_frequency.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ Methods
DateOffset.is_quarter_end
DateOffset.is_year_start
DateOffset.is_year_end
DateOffset.rollback
DateOffset.rollforward

BusinessDay
-----------
Expand Down
1 change: 1 addition & 0 deletions doc/source/reference/series.rst
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ strings and apply several methods to it. These can be accessed like
Series.str.fullmatch
Series.str.get
Series.str.index
Series.str.isascii
Series.str.join
Series.str.len
Series.str.ljust
Expand Down
258 changes: 124 additions & 134 deletions doc/source/whatsnew/v3.0.0.rst

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions pandas/_libs/tslibs/offsets.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,11 @@ cdef class BaseOffset:
"""
Roll provided date backward to next offset only if not on offset.

Parameters
----------
dt : datetime or Timestamp
Timestamp to rollback.

Returns
-------
TimeStamp
Expand All @@ -704,6 +709,11 @@ cdef class BaseOffset:
"""
Roll provided date forward to next offset only if not on offset.

Parameters
----------
dt : datetime or Timestamp
Timestamp to rollback.

Returns
-------
TimeStamp
Expand Down
1 change: 0 additions & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -1866,7 +1866,6 @@ def from_arrow(
Returns
-------
DataFrame
"""
pa = import_optional_dependency("pyarrow", min_version="14.0.0")
if not isinstance(data, pa.Table):
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/strings/accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3780,7 +3780,7 @@ def casefold(self):
Series.str.isupper : Check whether all characters are uppercase.
Examples
------------
--------
The ``s5.str.isascii`` method checks for whether all characters are ascii
characters, which includes digits 0-9, capital and lowercase letters A-Z,
and some other special characters.
Expand Down
Loading