Data School’s Top 25 Pandas Tricks (video)

[ad_1]

July 11, 2019 · Python tutorial

In my new pandas video, you are going to study 25 tips that may allow you to to work sooner, write higher code, and impress your mates. These are probably the most helpful tips I’ve discovered from 5 years of educating Python’s pandas library.

Every trick is a few minute lengthy, so you are going to study a ton of latest pandas expertise in lower than 30 minutes!

If you wish to save these tips for reference, you possibly can download the Jupyter notebook from GitHub.

“The entire tips have been thoughts blowing. However the bonus one was out of this world.” – Bubai Dutta

Click on on a timestamp beneath to leap to a selected trick:

0:00 Introduction
0:43 1. Present put in variations
1:20 2. Create an instance DataFrame
2:22 3. Rename columns
3:47 4. Reverse row order
4:36 5. Reverse column order
5:01 6. Choose columns by information sort
5:40 7. Convert strings to numbers
6:55 8. Cut back DataFrame dimension
8:15 9. Construct a DataFrame from a number of information (row-wise)
10:00 10. Construct a DataFrame from a number of information (column-wise)
10:45 11. Create a DataFrame from the clipboard
11:50 12. Cut up a DataFrame into two random subsets
12:57 13. Filter a DataFrame by a number of classes
13:52 14. Filter a DataFrame by largest classes
14:42 15. Deal with lacking values
15:57 16. Cut up a string into a number of columns
16:59 17. Broaden a Collection of lists right into a DataFrame
17:39 18. Mixture by a number of features
18:41 19. Mix the output of an aggregation with a DataFrame
19:56 20. Choose a slice of rows and columns
20:52 21. Reshape a MultiIndexed Collection
22:04 22. Create a pivot desk
23:01 23. Convert steady information into categorical information
23:56 24. Change show choices
24:47 25. Fashion a DataFrame
26:14 Bonus. Profile a DataFrame

P.S. Need to study much more tips? I posted 100 tricks on this page!



[ad_2]

Source link

Write a comment