Consider a DataFrame df which looks like: ('Name' column had been set as Index) Which command will access the record of
Posted: Mon Jul 11, 2022 11:56 am
Consider a DataFrame df which looks like: ('Name' column hadbeen set as Index)
Which command will access the record of 'Joshua'? (Choose allthat apply.)
df.loc['Joshua',:]
df.iloc[3]
df['Joshua']
df.loc[3,:]
Consider a DataFrame, df, which looks like: ('Name' column hadbeen set as Index)
Which of the following will you use to access only the Age andDate_Of_Joining of 'Sandy'? (Choose all that apply.)
df.loc[2,1:3]
df.iloc[3, 1:3]
df.iloc[2, :2]
df.loc['Sandy' , 'Age' : 'Date_Of_Joining']
Which command will access the record of 'Joshua'? (Choose allthat apply.)
df.loc['Joshua',:]
df.iloc[3]
df['Joshua']
df.loc[3,:]
Consider a DataFrame, df, which looks like: ('Name' column hadbeen set as Index)
Which of the following will you use to access only the Age andDate_Of_Joining of 'Sandy'? (Choose all that apply.)
df.loc[2,1:3]
df.iloc[3, 1:3]
df.iloc[2, :2]
df.loc['Sandy' , 'Age' : 'Date_Of_Joining']