Timeline for Does pandas iterrows have performance issues?
Current License: CC BY-SA 4.0
Post Revisions
23 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 2, 2024 at 21:53 | answer | added | Luan Pham | timeline score: 0 | |
| Oct 11, 2023 at 5:56 | comment | added | Gabriel Staples |
See also pots of .iterrows() performance in this answer here and my answer here.
|
|
| Sep 19, 2022 at 18:11 | history | edited | Peter Mortensen | CC BY-SA 4.0 |
Removed historical information (that is what the revision history is for)—the answer should be as if it was written right now. Removed the meta question (this is not a forum). Removed meta information (this belongs in comments).
|
| May 15, 2021 at 14:55 | answer | added | Moto Koto | timeline score: 2 | |
| Dec 18, 2020 at 11:23 | answer | added | coldspeed95 | timeline score: 17 | |
| Jun 9, 2019 at 3:49 | comment | added | coldspeed95 | Please do not recommend the use of iterrows(). It is a blatant enabler of the worst anti-pattern in the history of pandas. | |
| Apr 13, 2019 at 19:40 | answer | added | Vandana Sharma | timeline score: 1 | |
| Apr 9, 2019 at 7:45 | history | edited | smci | CC BY-SA 4.0 |
iterrows is pandas, not base python
|
| Aug 15, 2017 at 14:42 | answer | added | Polor Beer | timeline score: 9 | |
| Feb 22, 2016 at 15:16 | vote | accept | KieranPC | ||
| Feb 22, 2016 at 15:16 | vote | accept | KieranPC | ||
| Feb 22, 2016 at 15:16 | |||||
| Jul 31, 2014 at 9:22 | vote | accept | KieranPC | ||
| Feb 22, 2016 at 15:16 | |||||
| Jul 31, 2014 at 9:22 | vote | accept | KieranPC | ||
| Jul 31, 2014 at 9:22 | |||||
| Jul 31, 2014 at 9:22 | vote | accept | KieranPC | ||
| Jul 31, 2014 at 9:22 | |||||
| Jul 21, 2014 at 21:42 | comment | added | KieranPC | Link to the specific question (this one will stay general): stackoverflow.com/questions/24875096/… | |
| Jul 21, 2014 at 17:55 | answer | added | Jeff | timeline score: 17 | |
| Jul 21, 2014 at 17:41 | answer | added | chrisaycock | timeline score: 23 | |
| Jul 21, 2014 at 17:39 | answer | added | Jeff | timeline score: 283 | |
| Jul 21, 2014 at 17:31 | history | edited | KieranPC | CC BY-SA 3.0 |
Code added to show how I am using iterrows
|
| Jul 21, 2014 at 17:28 | comment | added | Jeff | See this issue for a more full discussion: github.com/pydata/pandas/issues/7194. | |
| Jul 21, 2014 at 17:24 | comment | added | Jeff |
The issue you linked to instead has to do with the boxing of a DatetimeIndex into Timestamps (was implemented in python space), and this has been much improved in master.
|
|
| Jul 21, 2014 at 17:22 | comment | added | Jeff |
apply is NOT vectorized. iterrows is even worse as it boxes everything (that' the perf diff with apply). You should only use iterrows in very very few situations. IMHO never. Show what you are actually doing with iterrows.
|
|
| Jul 21, 2014 at 17:19 | history | asked | KieranPC | CC BY-SA 3.0 |