@@ -2360,13 +2360,13 @@ def cat(self, others=None, sep=None, na_rep=None, join=None):
23602360
23612361 See Also
23622362 --------
2363- Series.str.split : Split strings around given separator/delimiter.
2364- Series.str.rsplit : Splits string around given separator/delimiter,
2365- starting from the right.
2366- Series.str.join : Join lists contained as elements in the Series/Index
2367- with passed delimiter.
2368- str.split : Standard library version for split.
2369- str.rsplit : Standard library version for rsplit.
2363+ Series.str.split : Split strings around given separator/delimiter.
2364+ Series.str.rsplit : Splits string around given separator/delimiter,
2365+ starting from the right.
2366+ Series.str.join : Join lists contained as elements in the Series/Index
2367+ with passed delimiter.
2368+ str.split : Standard library version for split.
2369+ str.rsplit : Standard library version for rsplit.
23702370
23712371 Notes
23722372 -----
@@ -2383,7 +2383,12 @@ def cat(self, others=None, sep=None, na_rep=None, join=None):
23832383 Examples
23842384 --------
23852385 >>> s = pd.Series(["this is a regular sentence",
2386- "https://docs.python.org/3/tutorial/index.html", np.nan])
2386+ ... "https://docs.python.org/3/tutorial/index.html",
2387+ ... np.nan])
2388+ 0 this is a regular sentence
2389+ 1 https://docs.python.org/3/tutorial/index.html
2390+ 2 NaN
2391+ dtype: object
23872392
23882393 In the default setting, the string is split by whitespace.
23892394
@@ -2434,7 +2439,6 @@ def cat(self, others=None, sep=None, na_rep=None, join=None):
24342439 0 this is a regular
24352440 1 https://docs.python.org/3/tutorial/index.html None None None
24362441 2 NaN NaN NaN NaN \
2437-
24382442 4
24392443 0 sentence
24402444 1 None
0 commit comments