Skip to content

Commit 2e76e84

Browse files
committed
Removed nested list example
1 parent 41c8297 commit 2e76e84

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/source/text.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -312,14 +312,15 @@ All one-dimensional list-likes can be combined in a list-like container (includi
312312
313313
s
314314
u
315-
s.str.cat([u.values, ['A', 'B', 'C', 'D'], map(str, u.index)], na_rep='-')
315+
s.str.cat([u.values,
316+
u.index.astype(str).values], na_rep='-')
316317
317318
All elements must match in length to the calling ``Series`` (or ``Index``), except those having an index if ``join`` is not None:
318319

319320
.. ipython:: python
320321
321322
v
322-
s.str.cat([u, v, ['A', 'B', 'C', 'D']], join='outer', na_rep='-')
323+
s.str.cat([u, v], join='outer', na_rep='-')
323324
324325
If using ``join='right'`` on a list of ``others`` that contains different indexes,
325326
the union of these indexes will be used as the basis for the final concatenation:

0 commit comments

Comments
 (0)