Skip to content

Commit dd74c2e

Browse files
committed
Review (jreback)
1 parent 4e2ff0a commit dd74c2e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

doc/source/text.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -306,20 +306,20 @@ The same alignment can be used when ``others`` is a ``DataFrame``:
306306
Concatenating a Series and many objects into a Series
307307
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
308308

309-
An arbitrary combination of ``Series``, ``Index`` and ``np.ndarray`` (1-dimensional) can be passed in a list-like container (including iterators, ``dict``-views, etc.):
309+
All one-dimensional list-likes can be combined in a list-like container (including iterators, ``dict``-views, etc.):
310310

311311
.. ipython:: python
312312
313313
s
314314
u
315-
s.str.cat([u, u.values, pd.Index(u)], na_rep='-')
315+
s.str.cat([u.values, ['A', 'B', 'C', 'D'], map(str, u.index)], na_rep='-')
316316
317317
All elements must match in length to the calling ``Series`` (or ``Index``), except those having an index if ``join`` is not None:
318318

319319
.. ipython:: python
320320
321321
v
322-
s.str.cat([u, v, u.values], join='outer', na_rep='-')
322+
s.str.cat([u, v, ['A', 'B', 'C', 'D']], join='outer', na_rep='-')
323323
324324
If using ``join='right'`` on a list of ``others`` that contains different indexes,
325325
the union of these indexes will be used as the basis for the final concatenation:

doc/source/whatsnew/v0.24.0.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ Deprecations
481481
- :meth:`Categorical.from_codes` has deprecated providing float values for the ``codes`` argument. (:issue:`21767`)
482482
- :func:`pandas.read_table` is deprecated. Instead, use :func:`pandas.read_csv` passing ``sep='\t'`` if necessary (:issue:`21948`)
483483
- :meth:`Series.str.cat` has deprecated using arbitrary list-likes *within* list-likes. A list-like container may still contain
484-
arbitrarily many ``Series``, ``Index`` or 1-dimenstional ``np.ndarray``, or alternatively, only scalar values. (:issue:`21950`)
484+
many ``Series``, ``Index`` or 1-dimenstional ``np.ndarray``, or alternatively, only scalar values. (:issue:`21950`)
485485

486486
.. _whatsnew_0240.prior_deprecations:
487487

pandas/core/strings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1931,7 +1931,7 @@ def _get_series_list(self, others, ignore_index=False):
19311931
Parameters
19321932
----------
19331933
others : Series, Index, DataFrame, np.ndarray, list-like or list-like
1934-
of objects that are Series, Index, np.ndarray (1-dim)
1934+
of objects that are Series, Index or np.ndarray (1-dim)
19351935
ignore_index : boolean, default False
19361936
Determines whether to forcefully align others with index of caller
19371937

0 commit comments

Comments
 (0)