diff --git a/doc/source/getting_started/10min.rst b/doc/source/getting_started/10min.rst index 510c7ef97aa98..9045e5b32c29f 100644 --- a/doc/source/getting_started/10min.rst +++ b/doc/source/getting_started/10min.rst @@ -468,6 +468,13 @@ Concatenating pandas objects together with :func:`concat`: pd.concat(pieces) +.. note:: + Adding a column to a ``DataFrame`` is relatively fast. However, adding + a row requires a copy, and may be expensive. We recommend passing a + pre-built list of records to the ``DataFrame`` constructor instead + of building a ``DataFrame`` by iteratively appending records to it. + See :ref:`Appending to dataframe ` for more. + Join ~~~~ @@ -491,21 +498,6 @@ Another example that can be given is: right pd.merge(left, right, on='key') - -Append -~~~~~~ - -Append rows to a dataframe. See the :ref:`Appending ` -section. - -.. ipython:: python - - df = pd.DataFrame(np.random.randn(8, 4), columns=['A', 'B', 'C', 'D']) - df - s = df.iloc[3] - df.append(s, ignore_index=True) - - Grouping --------