Pandas Flashcards

1
Q

Series

A

s = pd.Series([1,3,5,np.nan,6,8])

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

DataFrame

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

Display the index, columns, and the underlying numpy data

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

Transposing your data

A

df.T

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

Sorting by an axis

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

Selecting via [], which slices the rows.

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

Selecting on a multi-axis by label

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

For getting a scalar value

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

Selection by Position

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

Slicing row or column

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

Using the isin() method for filtering:

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

To drop any rows that have missing data.

fill the missing data

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

Operating with objects that have different dimensionality and need alignment. In addition, pandas automatically broadcasts along the specified dimension

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

Append rows to a dataframe

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

Grouping

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

Reshaping

A
17
Q

stack() method

A
18
Q

Time Series

A
19
Q

CSV

A