Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75397 > unrolled thread
| Started by | Skip Montanaro <skip.montanaro@gmail.com> |
|---|---|
| First post | 2014-07-30 21:28 -0500 |
| Last post | 2014-07-30 19:55 -0700 |
| Articles | 2 — 2 participants |
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.
Re: speed up pandas calculation Skip Montanaro <skip.montanaro@gmail.com> - 2014-07-30 21:28 -0500
Re: speed up pandas calculation Rustom Mody <rustompmody@gmail.com> - 2014-07-30 19:55 -0700
| From | Skip Montanaro <skip.montanaro@gmail.com> |
|---|---|
| Date | 2014-07-30 21:28 -0500 |
| Subject | Re: speed up pandas calculation |
| Message-ID | <mailman.12452.1406773743.18130.python-list@python.org> |
On Wed, Jul 30, 2014 at 8:11 PM, Chris Kaynor <ckaynor@zindagigames.com> wrote: > Another way to write this, using a list expression (untested): > new_df = [col for col in df if col.value in keep_col] As I am learning (often painfully) with pandas and JavaScript+(d3 or jQuery), loops are the enemy. You want to operate on large chunks of data simultaneously. In pandas, those chunks are thinly disguised numpy arrays. In JS+(ds or jQuery), those chunks are selections from the DOM. I should have paid closer attention to the APL unit of my programming languages survey class in college. Skip
[toc] | [next] | [standalone]
| From | Rustom Mody <rustompmody@gmail.com> |
|---|---|
| Date | 2014-07-30 19:55 -0700 |
| Message-ID | <e823ef50-b2bc-4349-b8a0-da0d40dcdb23@googlegroups.com> |
| In reply to | #75397 |
On Thursday, July 31, 2014 7:58:59 AM UTC+5:30, Skip Montanaro wrote: > As I am learning (often painfully) with pandas and JavaScript+(d3 or > jQuery), loops are the enemy. You want to operate on large chunks of > data simultaneously. In pandas, those chunks are thinly disguised > numpy arrays. In JS+(ds or jQuery), those chunks are selections from > the DOM. > I should have paid closer attention to the APL unit of my programming > languages survey class in college. Much more within reach than you may imagine http://baruchel.hd.free.fr/apps/apl/
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web