Skip to content

Commit f094db7

Browse files
committed
Fix missing doctest
1 parent 8e29388 commit f094db7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sdks/python/apache_beam/dataframe/pandas_doctests_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,7 @@ def test_string_tests(self):
605605
# For split and rsplit, if expand=True, then the series
606606
# must be of CategoricalDtype, which pandas doesn't convert to
607607
f'{module_name}.StringMethods.rsplit': [
608+
's.str.split(r"\\+|=", expand=True)', # for pandas<1.4
608609
's.str.split(expand=True)',
609610
's.str.rsplit("/", n=1, expand=True)',
610611
's.str.split(r"and|plus", expand=True)',
@@ -615,6 +616,7 @@ def test_string_tests(self):
615616
's.str.split(r"\\.jpg", regex=False, expand=True)'
616617
],
617618
f'{module_name}.StringMethods.split': [
619+
's.str.split(r"\\+|=", expand=True)', # for pandas<1.4
618620
's.str.split(expand=True)',
619621
's.str.rsplit("/", n=1, expand=True)',
620622
's.str.split(r"and|plus", expand=True)',

0 commit comments

Comments
 (0)