Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75396 > unrolled thread

Re: speed up pandas calculation

Started bySkip Montanaro <skip.montanaro@gmail.com>
First post2014-07-30 21:24 -0500
Last post2014-07-30 21:24 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: speed up pandas calculation Skip Montanaro <skip.montanaro@gmail.com> - 2014-07-30 21:24 -0500

#75396 — Re: speed up pandas calculation

FromSkip Montanaro <skip.montanaro@gmail.com>
Date2014-07-30 21:24 -0500
SubjectRe: speed up pandas calculation
Message-ID<mailman.12451.1406773498.18130.python-list@python.org>
(Now that I'm on a real keyboard, more complete responses are a bit easier.)

Regarding the issue of missing columns from keep_col, you could create
sets of what you have and what you want, and toss the rest:

toss_these = list(set(df.columns) - set(keep_col))
del df[toss_these]

Or something to that effect.

Skip

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web