Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 
avatar of cs95

cs95

cs95 has asked 98 questions and find answers to 1126 problems.

Stats

44.2k
EtPoint
17.0k
Vote count
98
questions
1k
answers

About

Hi Magi the pirate

My pandas canonicals ⬅ please critique!

and/or buy me a drink ;-)

When asking a question here, please describe the problem you are trying to solve, rather than asking about the method you think is the solution to that problem. This is known as the XY problem and can easily be averted if you ask the right questions. This will make it easy for us to understand what you're trying to do, and help you arrive at the best solution for your problem even sooner.

Rep = participation

Badges = quality

1 like = 1 prayer 1 upvote = 1 thanks

profile for coldspeed at Stack Overflow, Q&A for professional and enthusiast programmers

enter image description here

Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.


(Actively Maintained) Pandas Canonicals

The full list is on GitHub.

  • Pandas Merging 101: Everything you ever wanted to know about merging and more
  • How to iterate over a DataFrame. Spoler alert: don't!
  • How to convert a DataFrame to NumPy array: from 0.24, use df.to_numpy()
  • The Right Way to create an empty DataFrame and fill it: Use a list to grow your data, not a DataFrame
  • Don't use inplace=True!

Other Posts I'm Proud Of

  • Pandas Merging 101 (see above)
  • Best way to interleave two lists
  • How do "and" and "or" act with non-boolean values?
  • So you think you know recursion?

In addition to this, some of my answers that use perfplot are worth a read.


236th awardee of the Legendary badge.

Thanks, Stack Overflow! I love the shirt :-)

enter image description here

&

[SPACE RESERVED FOR 250k SWAG]