Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75396
| References | <CALyJZZXMmSk8L7+P7erQSp2W4EpkbxiXmJkY-+5svfK5C3Z0kw@mail.gmail.com> <CANc-5UzCLT8ZPF2PCDMQyOqr0gqrDjFGnsRAoFBfGVmCh5-0jg@mail.gmail.com> <CALyJZZWtCwRqL_QZJEe415o1_L_g6A4ZhrFJe6y3z1_jysfSxA@mail.gmail.com> <CALyJZZUQiw7W-EbOqDYF0wfuBJ5pTexP00FEndsOxNy5+MQrnA@mail.gmail.com> |
|---|---|
| Date | 2014-07-30 21:24 -0500 |
| Subject | Re: speed up pandas calculation |
| From | Skip Montanaro <skip.montanaro@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12451.1406773498.18130.python-list@python.org> (permalink) |
(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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: speed up pandas calculation Skip Montanaro <skip.montanaro@gmail.com> - 2014-07-30 21:24 -0500
csiph-web