I am studying ** machine learning ** at university. For review, I tried ** Pandas 100 knocks **. The function you used? I would like to summarize.
Click here for details Pandas 100 knocks for Python beginners
df.head()
Example: 10 lines
df.head(10)
df.tail()
df.sort_values('fare')
Sort in descending order by specifying ** ascending = False **
df.loc[:,:]
df.loc[:10, 'fare']
df[df['age'] >= 30]
df[(df['sex'] == "female") & (df['age'] >= 40)]
df.query('sex == "female" & age >= 40')
df.query('name.str.contains("Mrs")', engine='Python')
df.select_dtypes(include='object')
df.nunique()
df['embarked'].value_counts()
I felt like I was getting used to Pandas, but when I tried it, my confidence was broken ... It will be a good review, so please try it even if you are accustomed to it. query Very convenient ...
Recommended Posts