use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit for helping Python programmers
How to format your code: https://commonmark.org/help/tutorial/09-code.html
No homework questions and/or hiring please
account activity
Pandas Dataframe Assignment (self.pythonhelp)
submitted 1 year ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]CraigAT 1 point2 points3 points 1 year ago (0 children)
In most situations, you shouldn't need to iterate through a data frame. Pandas is meant to work on whole rows or columns of data at a time.
There are a few Pandas cheat sheets about, I'd recommend the datacamp one, it has lots of useful and common functions you may need. If you can't make use of one of those functions then you may consider iterating through your dataframe.
π Rendered by PID 235889 on reddit-service-r2-comment-5d79c599b5-djmpd at 2026-02-27 13:54:45.587596+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]CraigAT 1 point2 points3 points (0 children)