Setting Index
This quiz covers how to set an index of a DataFrame in Pandas.
We'll cover the following...
We'll cover the following...
Index setting in Pandas
1.
How can an index be set in a DataFrame
without needing to assign the return value to a new variable?
A.
df.set_index('column', inplace=True)
B.
df = df.set_index('column')
C.
df = df.set_index('column', within=True)
1 / 3