@@ -2360,13 +2360,13 @@ def cat(self, others=None, sep=None, na_rep=None, join=None):
2360
2360
2361
2361
See Also
2362
2362
--------
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.
2370
2370
2371
2371
Notes
2372
2372
-----
@@ -2383,7 +2383,12 @@ def cat(self, others=None, sep=None, na_rep=None, join=None):
2383
2383
Examples
2384
2384
--------
2385
2385
>>> 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
2387
2392
2388
2393
In the default setting, the string is split by whitespace.
2389
2394
@@ -2434,7 +2439,6 @@ def cat(self, others=None, sep=None, na_rep=None, join=None):
2434
2439
0 this is a regular
2435
2440
1 https://docs.python.org/3/tutorial/index.html None None None
2436
2441
2 NaN NaN NaN NaN \
2437
-
2438
2442
4
2439
2443
0 sentence
2440
2444
1 None
0 commit comments