Intermediate Pandas Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

How to convert pandas Dataframes to NumPy array

A

df.to_numpy()

Or df.values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to convert pandas Dataframes to dictionaries?

A

df.to_dict();

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to summarize statistics?

A

df.describe()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to eliminate scientific notation and set decimal points

A

df.describe().round(2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Groupby?

A

Groupby allows you to efficiently compute aggregate on subsets of data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly