Skip to content

Commit 5a2c2e8

Browse files
committed
add more doc tests
1 parent 65b2740 commit 5a2c2e8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bigframes/bigquery/__init__.py

+8
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ def array_length(series: series.Series) -> series.Series:
4444
2 2
4545
dtype: Int64
4646
47+
You can also apply this function directly to Series.
48+
49+
>>> s.apply(bbq.array_length, by_row=False)
50+
0 4
51+
1 0
52+
2 2
53+
dtype: Int64
54+
4755
Returns:
4856
bigframes.series.Series: A Series of integer values indicating
4957
the length of each element in the Series.

0 commit comments

Comments
 (0)