Pandas Flashcards

More useful than the Animal itself will ever be.

1
Q

DataFrame vs. Series

A

A Series is a one-dimensional array of values with an index.

A DataFrame is a two-dimensional array of values with both a row and column index.

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

Pandas Indexing: .loc and .iloc

A

Pandas has two properties that you can use for indexing:
.loc indexes with the labels for rows and columns axis.
.iloc indexes with the integer positions for rows and columns axis.

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