Question: Imagine you have a dataframe, called 'tickets', with 4 columns: ( ' name ' , 'address', 'parking _ spot', 'number _ of _ tickets' )

Imagine you have a dataframe, called 'tickets', with 4 columns: ('name', 'address', 'parking_spot', 'number_of_tickets')
If you wanted to subset out 2 columns, what code could you use (choose all that apply)
(By subsets, I mean show just 2 of the 4 columns, not the entire dataframe)
tickets.loc[:,['name', 'number_of_tickets']]
 Imagine you have a dataframe, called 'tickets', with 4 columns: ('name',

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!