10 mins to Pandas Flashcards

1
Q

What method can I use to create a series?

A

pd.Series

arg- a list surrounded by [ ]

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

What method would you use to create a data frame?

A

pd.DataFrame

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

How would I see the first 5 row of a data frame?

A

pd.head()

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

How would I see the last five rows of a data frame?

A

pd.tail()

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

what method can I use to get a summary of basic statistics from a data frame?

A

df.describe()

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