Skip to content

DOC: warning about copying for df.append/concat. Fixes #7967 #8488

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 6, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion doc/source/merging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ takes a list or dict of homogeneously-typed objects and concatenates them with
some configurable handling of "what to do with the other axes":

::

concat(objs, axis=0, join='outer', join_axes=None, ignore_index=False,
keys=None, levels=None, names=None, verify_integrity=False)

Expand Down Expand Up @@ -100,6 +99,18 @@ means that we can now do stuff like select out each chunk by key:
It's not a stretch to see how this can be very useful. More detail on this
functionality below.

.. note::
It is worth noting however, that ``concat`` (and therefore ``append``) makes
a full copy of the data, and that constantly reusing this function can
create a signifcant performance hit. If you need to use the operation over
several datasets, use a list comprehension.

::

frames = [ process_your_file(f) for f in files ]
result = pd.concat(frames)


Set logic on the other axes
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down