Consider a DataFrame df which looks like: ('Name' column had been set as Index) Which command will access the record of

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Consider a DataFrame df which looks like: ('Name' column had been set as Index) Which command will access the record of

Post by answerhappygod »

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']
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply