News for hackers. Stuff that matters.
Re:Self-Directed Pandas Crash Course by smabie on Sunday February 07, 2021 @12:44AM (#26052953)
Pandas isn't great, but I find it significantly nicer to use than normal Python. Why do you want to write a 100 lines of dumb loopy code when you can probably solve the same problem with a couple lines of Pandas?

If you really just want to use loops and stuff (which I would discourage) just use a list or a dict or something.

Re:Self-Directed Pandas Crash Course by ab111111111 on Sunday February 07, 2021 @01:17AM (#26053086)
As you indicate, Pandas is effectively another language, distinct from regular Python. E.g. it doesn't really use loops. So I think what irritates a lot of people about pandas is that they think "Cool. I can solve this complex problem in a couple of lines of Python code with pandas." then get irritated when they find that the couple of lines of pandas they need to use is "Incomprehensible pandas gibberish" instead of the familiar Python code they were expecting.
Re:Self-Directed Pandas Crash Course by chaps on Sunday February 07, 2021 @01:26AM (#26053118)
"If you really just want to use loops and stuff (which I would discourage) just use a list or a dict or something."

Like my post said, I favor vanilla python over pandas... so yes, I use lists, dicts and somethings. FWIW, though, my workflow pushes everything into postgres, and things that would normally go into pandas are just accessed through SQL through and with helper functions.