Pandas Flashcards
1
Q
Series
A
s = pd.Series([1,3,5,np.nan,6,8])
2
Q
DataFrame
A
3
Q
Display the index, columns, and the underlying numpy data
A
4
Q
Transposing your data
A
df.T
5
Q
Sorting by an axis
A
6
Q
Selecting via [], which slices the rows.
A
7
Q
Selecting on a multi-axis by label
A
8
Q
For getting a scalar value
A
9
Q
Selection by Position
A
10
Q
Slicing row or column
A
11
Q
Using the isin() method for filtering:
A
12
Q
To drop any rows that have missing data.
fill the missing data
A
13
Q
Operating with objects that have different dimensionality and need alignment. In addition, pandas automatically broadcasts along the specified dimension
A
14
Q
Append rows to a dataframe
A
15
Q
Grouping
A