Intermediate Pandas Flashcards
1
Q
How to convert pandas Dataframes to NumPy array
A
df.to_numpy()
Or df.values
2
Q
How to convert pandas Dataframes to dictionaries?
A
df.to_dict();
3
Q
How to summarize statistics?
A
df.describe()
4
Q
How to eliminate scientific notation and set decimal points
A
df.describe().round(2)
5
Q
What function will also describe, provide the count,unique,top, and frequency for non-numeric columns
A
df.describe(include = ‘all’).round(4)
6
Q
What is Groupby?
A
Groupby allows you to efficiently compute aggregate on subsets of data