cs95
My pandas canonicals ⬅ please critique!
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
(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 :-)
&
[SPACE RESERVED FOR 250k SWAG]
55
answers
46
questions
~128k
people reached
-
At an ipython shell near you
-
Member for 5 years, 9 months
-
2,897 profile views
-
Last seen 11 hours ago
Communities (4)
Top network posts
- 996 How to iterate over rows in a DataFrame in Pandas
- 742 Pandas Merging 101
- 507 Pandas Merging 101
- 375 Convert pandas dataframe to NumPy array
- 362 Creating an empty Pandas DataFrame, then filling it?
- 353 How to deal with SettingWithCopyWarning in Pandas
- 226 Select rows in pandas MultiIndex DataFrame
- View more network posts →
Top tags (80)
Score
1,077
Posts
71
Posts %
70
Badges (141)
Gold
6
Rarest
-
Dec 13 '19
-
Jan 29 '18
Silver
54
Rarest
-
Dec 13 '19
-
Jun 8 '19
-
Nov 1 '17
Bronze
81
Rarest
-
May 20 '18
-
Jun 23
-
Nov 28 '17