Skip to content
Merged
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
20 changes: 19 additions & 1 deletion bigframes/operations/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,25 @@ def lower(self) -> series.Series:
return self._apply_unary_op(ops.lower_op)

def reverse(self) -> series.Series:
"""Reverse strings in the Series."""
"""Reverse strings in the Series.

**Examples:**

>>> import bigframes.pandas as bpd
>>> bpd.options.display.progress_bar = None

>>> s = bpd.Series(["apple", "banana", "", bpd.NA])
>>> s.str.reverse()
0 elppa
1 ananab
2
3 <NA>
dtype: string

Returns:
bigframes.series.Series: A Series of booleans indicating whether the given
pattern matches the start of each string element.
"""
# reverse method is in ibis, not pandas.
return self._apply_unary_op(ops.reverse_op)

Expand Down
4 changes: 4 additions & 0 deletions scripts/get_documentation_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ def get_coverage_summary(
if name.startswith("_") and not name.startswith("__"):
continue

# ignore constructor
if name == "__init__":
continue

def predicate(impl):
return (
# This includes class methods like `from_dict`, `from_records`
Expand Down
Loading