@@ -37,7 +37,7 @@ def dt(self):
3737
3838 **Examples:**
3939
40-
40+ >>> import bigframes.pandas as bpd
4141 >>> seconds_series = bpd.Series(pd.date_range("2000-01-01", periods=3, freq="s"))
4242 >>> seconds_series
4343 0 2000-01-01 00:00:00
@@ -1053,6 +1053,7 @@ def duplicated(self, keep="first") -> Series:
10531053
10541054 **Examples:**
10551055
1056+ >>> import bigframes.pandas as bpd
10561057
10571058 By default, for each set of duplicated values, the first occurrence is
10581059 set on False and all others on True:
@@ -1616,7 +1617,7 @@ def nlargest(
16161617
16171618 **Examples:**
16181619
1619-
1620+ >>> import bigframes.pandas as bpd
16201621 >>> countries_population = {"Italy": 59000000, "France": 65000000,
16211622 ... "Malta": 434000, "Maldives": 434000,
16221623 ... "Brunei": 434000, "Iceland": 337000,
@@ -1700,7 +1701,7 @@ def nsmallest(self, n: int = 5, keep: str = "first") -> Series:
17001701
17011702 **Examples:**
17021703
1703-
1704+ >>> import bigframes.pandas as bpd
17041705 >>> countries_population = {"Italy": 59000000, "France": 65000000,
17051706 ... "Malta": 434000, "Maldives": 434000,
17061707 ... "Brunei": 434000, "Iceland": 337000,
@@ -4570,7 +4571,7 @@ def median(self, *, exact: bool = True):
45704571
45714572 **Examples:**
45724573
4573-
4574+ >>> import bigframes.pandas as bpd
45744575 >>> s = bpd.Series([1, 2, 3])
45754576 >>> s.median()
45764577 np.float64(2.0)
@@ -4870,7 +4871,6 @@ def mask(self, cond, other):
48704871
48714872 **Examples:**
48724873
4873-
48744874 >>> s = bpd.Series([10, 11, 12, 13, 14])
48754875 >>> s
48764876 0 10
@@ -4914,7 +4914,7 @@ def mask(self, cond, other):
49144914 condition is evaluated based on a complicated business logic which cannot
49154915 be expressed in form of a Series.
49164916
4917- >>> @bpd.remote_function(reuse=False, cloud_function_service_account="default")
4917+ >>> @bpd.remote_function(reuse=False, cloud_function_service_account="default") # doctest: +SKIP
49184918 ... def should_mask(name: str) -> bool:
49194919 ... hash = 0
49204920 ... for char_ in name:
@@ -4927,12 +4927,12 @@ def mask(self, cond, other):
49274927 1 Bob
49284928 2 Caroline
49294929 dtype: string
4930- >>> s.mask(should_mask)
4930+ >>> s.mask(should_mask) # doctest: +SKIP
49314931 0 <NA>
49324932 1 Bob
49334933 2 Caroline
49344934 dtype: string
4935- >>> s.mask(should_mask, "REDACTED")
4935+ >>> s.mask(should_mask, "REDACTED") # doctest: +SKIP
49364936 0 REDACTED
49374937 1 Bob
49384938 2 Caroline
@@ -5469,7 +5469,6 @@ def map(
54695469
54705470 **Examples:**
54715471
5472-
54735472 >>> s = bpd.Series(['cat', 'dog', pd.NA, 'rabbit'])
54745473 >>> s
54755474 0 cat
@@ -5490,7 +5489,7 @@ def map(
54905489
54915490 It also accepts a remote function:
54925491
5493- >>> @bpd.remote_function(cloud_function_service_account="default")
5492+ >>> @bpd.remote_function(cloud_function_service_account="default") # doctest: +SKIP
54945493 ... def my_mapper(val: str) -> str:
54955494 ... vowels = ["a", "e", "i", "o", "u"]
54965495 ... if val:
@@ -5499,7 +5498,7 @@ def map(
54995498 ... ])
55005499 ... return "N/A"
55015500
5502- >>> s.map(my_mapper)
5501+ >>> s.map(my_mapper) # doctest: +SKIP
55035502 0 cAt
55045503 1 dOg
55055504 2 N/A
0 commit comments