|
9 | 9 | randn = np.random.randn
|
10 | 10 | np.set_printoptions(precision=4, suppress=True)
|
11 | 11 | from pandas.compat import lrange
|
12 |
| - options.display.max_rows=15 |
| 12 | + pd.options.display.max_rows=15 |
13 | 13 |
|
14 | 14 | ======================
|
15 | 15 | Working with Text Data
|
@@ -375,53 +375,54 @@ Method Summary
|
375 | 375 | .. csv-table::
|
376 | 376 | :header: "Method", "Description"
|
377 | 377 | :widths: 20, 80
|
378 |
| - |
379 |
| - :meth:`~Series.str.cat`,Concatenate strings |
380 |
| - :meth:`~Series.str.split`,Split strings on delimiter |
381 |
| - :meth:`~Series.str.rsplit`,Split strings on delimiter working from the end of the string |
382 |
| - :meth:`~Series.str.get`,Index into each element (retrieve i-th element) |
383 |
| - :meth:`~Series.str.join`,Join strings in each element of the Series with passed separator |
384 |
| - :meth:`~Series.str.get_dummies`,Split strings on delimiter, returning DataFrame of dummy variables |
385 |
| - :meth:`~Series.str.contains`,Return boolean array if each string contains pattern/regex |
386 |
| - :meth:`~Series.str.replace`,Replace occurrences of pattern/regex with some other string |
387 |
| - :meth:`~Series.str.repeat`,Duplicate values (``s.str.repeat(3)`` equivalent to ``x * 3``) |
388 |
| - :meth:`~Series.str.pad`,"Add whitespace to left, right, or both sides of strings" |
389 |
| - :meth:`~Series.str.center`,Equivalent to ``str.center`` |
390 |
| - :meth:`~Series.str.ljust`,Equivalent to ``str.ljust`` |
391 |
| - :meth:`~Series.str.rjust`,Equivalent to ``str.rjust`` |
392 |
| - :meth:`~Series.str.zfill`,Equivalent to ``str.zfill`` |
393 |
| - :meth:`~Series.str.wrap`,Split long strings into lines with length less than a given width |
394 |
| - :meth:`~Series.str.slice`,Slice each string in the Series |
395 |
| - :meth:`~Series.str.slice_replace`,Replace slice in each string with passed value |
396 |
| - :meth:`~Series.str.count`,Count occurrences of pattern |
397 |
| - :meth:`~Series.str.startswith`,Equivalent to ``str.startswith(pat)`` for each element |
398 |
| - :meth:`~Series.str.endswith`,Equivalent to ``str.endswith(pat)`` for each element |
399 |
| - :meth:`~Series.str.findall`,Compute list of all occurrences of pattern/regex for each string |
400 |
| - :meth:`~Series.str.match`,"Call ``re.match`` on each element, returning matched groups as list" |
401 |
| - :meth:`~Series.str.extract`,"Call ``re.search`` on each element, returning DataFrame with one row for each element and one column for each regex capture group" |
402 |
| - :meth:`~Series.str.extractall`,"Call ``re.findall`` on each element, returning DataFrame with one row for each match and one column for each regex capture group" |
403 |
| - :meth:`~Series.str.len`,Compute string lengths |
404 |
| - :meth:`~Series.str.strip`,Equivalent to ``str.strip`` |
405 |
| - :meth:`~Series.str.rstrip`,Equivalent to ``str.rstrip`` |
406 |
| - :meth:`~Series.str.lstrip`,Equivalent to ``str.lstrip`` |
407 |
| - :meth:`~Series.str.partition`,Equivalent to ``str.partition`` |
408 |
| - :meth:`~Series.str.rpartition`,Equivalent to ``str.rpartition`` |
409 |
| - :meth:`~Series.str.lower`,Equivalent to ``str.lower`` |
410 |
| - :meth:`~Series.str.upper`,Equivalent to ``str.upper`` |
411 |
| - :meth:`~Series.str.find`,Equivalent to ``str.find`` |
412 |
| - :meth:`~Series.str.rfind`,Equivalent to ``str.rfind`` |
413 |
| - :meth:`~Series.str.index`,Equivalent to ``str.index`` |
414 |
| - :meth:`~Series.str.rindex`,Equivalent to ``str.rindex`` |
415 |
| - :meth:`~Series.str.capitalize`,Equivalent to ``str.capitalize`` |
416 |
| - :meth:`~Series.str.swapcase`,Equivalent to ``str.swapcase`` |
417 |
| - :meth:`~Series.str.normalize`,Return Unicode normal form. Equivalent to ``unicodedata.normalize`` |
418 |
| - :meth:`~Series.str.translate`,Equivalent to ``str.translate`` |
419 |
| - :meth:`~Series.str.isalnum`,Equivalent to ``str.isalnum`` |
420 |
| - :meth:`~Series.str.isalpha`,Equivalent to ``str.isalpha`` |
421 |
| - :meth:`~Series.str.isdigit`,Equivalent to ``str.isdigit`` |
422 |
| - :meth:`~Series.str.isspace`,Equivalent to ``str.isspace`` |
423 |
| - :meth:`~Series.str.islower`,Equivalent to ``str.islower`` |
424 |
| - :meth:`~Series.str.isupper`,Equivalent to ``str.isupper`` |
425 |
| - :meth:`~Series.str.istitle`,Equivalent to ``str.istitle`` |
426 |
| - :meth:`~Series.str.isnumeric`,Equivalent to ``str.isnumeric`` |
427 |
| - :meth:`~Series.str.isdecimal`,Equivalent to ``str.isdecimal`` |
| 378 | + :delim: ; |
| 379 | + |
| 380 | + :meth:`~Series.str.cat`;Concatenate strings |
| 381 | + :meth:`~Series.str.split`;Split strings on delimiter |
| 382 | + :meth:`~Series.str.rsplit`;Split strings on delimiter working from the end of the string |
| 383 | + :meth:`~Series.str.get`;Index into each element (retrieve i-th element) |
| 384 | + :meth:`~Series.str.join`;Join strings in each element of the Series with passed separator |
| 385 | + :meth:`~Series.str.get_dummies`;Split strings on the delimiter returning DataFrame of dummy variables |
| 386 | + :meth:`~Series.str.contains`;Return boolean array if each string contains pattern/regex |
| 387 | + :meth:`~Series.str.replace`;Replace occurrences of pattern/regex with some other string |
| 388 | + :meth:`~Series.str.repeat`;Duplicate values (``s.str.repeat(3)`` equivalent to ``x * 3``) |
| 389 | + :meth:`~Series.str.pad`;"Add whitespace to left, right, or both sides of strings" |
| 390 | + :meth:`~Series.str.center`;Equivalent to ``str.center`` |
| 391 | + :meth:`~Series.str.ljust`;Equivalent to ``str.ljust`` |
| 392 | + :meth:`~Series.str.rjust`;Equivalent to ``str.rjust`` |
| 393 | + :meth:`~Series.str.zfill`;Equivalent to ``str.zfill`` |
| 394 | + :meth:`~Series.str.wrap`;Split long strings into lines with length less than a given width |
| 395 | + :meth:`~Series.str.slice`;Slice each string in the Series |
| 396 | + :meth:`~Series.str.slice_replace`;Replace slice in each string with passed value |
| 397 | + :meth:`~Series.str.count`;Count occurrences of pattern |
| 398 | + :meth:`~Series.str.startswith`;Equivalent to ``str.startswith(pat)`` for each element |
| 399 | + :meth:`~Series.str.endswith`;Equivalent to ``str.endswith(pat)`` for each element |
| 400 | + :meth:`~Series.str.findall`;Compute list of all occurrences of pattern/regex for each string |
| 401 | + :meth:`~Series.str.match`;"Call ``re.match`` on each element, returning matched groups as list" |
| 402 | + :meth:`~Series.str.extract`;"Call ``re.search`` on each element, returning DataFrame with one row for each element and one column for each regex capture group" |
| 403 | + :meth:`~Series.str.extractall`;"Call ``re.findall`` on each element, returning DataFrame with one row for each match and one column for each regex capture group" |
| 404 | + :meth:`~Series.str.len`;Compute string lengths |
| 405 | + :meth:`~Series.str.strip`;Equivalent to ``str.strip`` |
| 406 | + :meth:`~Series.str.rstrip`;Equivalent to ``str.rstrip`` |
| 407 | + :meth:`~Series.str.lstrip`;Equivalent to ``str.lstrip`` |
| 408 | + :meth:`~Series.str.partition`;Equivalent to ``str.partition`` |
| 409 | + :meth:`~Series.str.rpartition`;Equivalent to ``str.rpartition`` |
| 410 | + :meth:`~Series.str.lower`;Equivalent to ``str.lower`` |
| 411 | + :meth:`~Series.str.upper`;Equivalent to ``str.upper`` |
| 412 | + :meth:`~Series.str.find`;Equivalent to ``str.find`` |
| 413 | + :meth:`~Series.str.rfind`;Equivalent to ``str.rfind`` |
| 414 | + :meth:`~Series.str.index`;Equivalent to ``str.index`` |
| 415 | + :meth:`~Series.str.rindex`;Equivalent to ``str.rindex`` |
| 416 | + :meth:`~Series.str.capitalize`;Equivalent to ``str.capitalize`` |
| 417 | + :meth:`~Series.str.swapcase`;Equivalent to ``str.swapcase`` |
| 418 | + :meth:`~Series.str.normalize`;Return Unicode normal form. Equivalent to ``unicodedata.normalize`` |
| 419 | + :meth:`~Series.str.translate`;Equivalent to ``str.translate`` |
| 420 | + :meth:`~Series.str.isalnum`;Equivalent to ``str.isalnum`` |
| 421 | + :meth:`~Series.str.isalpha`;Equivalent to ``str.isalpha`` |
| 422 | + :meth:`~Series.str.isdigit`;Equivalent to ``str.isdigit`` |
| 423 | + :meth:`~Series.str.isspace`;Equivalent to ``str.isspace`` |
| 424 | + :meth:`~Series.str.islower`;Equivalent to ``str.islower`` |
| 425 | + :meth:`~Series.str.isupper`;Equivalent to ``str.isupper`` |
| 426 | + :meth:`~Series.str.istitle`;Equivalent to ``str.istitle`` |
| 427 | + :meth:`~Series.str.isnumeric`;Equivalent to ``str.isnumeric`` |
| 428 | + :meth:`~Series.str.isdecimal`;Equivalent to ``str.isdecimal`` |
0 commit comments