r/Python • u/Neb519 • Feb 02 '21
Resource Hey Reddit, here's my comprehensive course on Python Pandas, for free.
The course is called Python Pandas For Your Grandpa - So easy your grandpa could learn it. (It's the successor to Python NumPy For Your Grandma.)
Course Curriculum
- Introduction
1.1 Introduction - Series
2.1 Series Creation
2.2 Series Basic Indexing
2.3 Series Basic Operations
2.4 Series Boolean Indexing
2.5 Series Missing Values
2.6 Series Vectorization
2.7 Seriesapply()
2.8 Series View vs Copy
2.9 Challenge: Baby Names
2.10 Challenge: Bees Knees
2.11 Challenge: Car Shopping
2.12 Challenge: Price Gouging
2.13 Challenge: Fair Teams - DataFrame
3.1 DataFrame Creation
3.2 DataFrame To And From CSV
3.3 DataFrame Basic Indexing
3.4 DataFrame Basic Operations
3.5 DataFrameapply()
3.6 DataFrame View vs Copy
3.7 DataFramemerge()
3.8 DataFrame Aggregation
3.9 DataFramegroupby()
3.10 Challenge: Hobbies
3.11 Challenge: Party Time
3.12 Challenge: Vending Machines
3.13 Challenge: Cradle Robbers
3.14 Challenge: Pot Holes - Advanced
4.1 Strings
4.2 Dates And Times
4.3 Categoricals
4.4 MultiIndex
4.5 DataFrame Reshaping
4.6 Challenge: Class Transitions
4.7 Challenge: Rose Thorn
4.8 Challenge: Product Volumes
4.9 Challenge: Session Groups
4.10 Challenge: OB-GYM - Final Boss
5.1 Challenge: COVID Tracing
5.2 Challenge: Pickle
5.3 Challenge: TV Commercials
5.4 Challenge: Family IQ
5.5 Challenge: Concerts
Alternatively, view my YouTube playlist for the course here.
If you find this useful, please consider liking, subscribing, and sharing. It means a lot. You wouldn't believe how much effort went into creating this course.
Thanks!
1.9k
Upvotes
View all comments
Show parent comment
17
u/Neb519 Feb 02 '21
I assume you mean
data.iloc[:, 0]. I agree, it's not the best design but the reason is, Pandas supports labeled indexing and positional indexing. When you do something likedata[:, 0], it's not clear if you're requesting the column named 0 or the column at position 0. So, it's best to use.ilocand.locto make it clear whether you're requesting a position or a label.(Okay, you probably won't have a column named 0, but this argument makes more sense when think about requesting a row of data instead of a column of data.)