gpt-3.5-turbo-0613· OpenAI
WildChat-4.8M (AI2)
Which indexer selects values by their row or column label for a Pandas data frame?…
- User
Which indexer selects values by their row or column label for a Pandas data frame? Question 8Answer
A. .loc
B. .iloc
- Assistant
A. .loc
- User
Which of the following Python codes are correct if we'd like to select column 'c' of the data frame 'df'? (There are two correct answers)
Question 7Answer
A. df['c']
B. df.c
C. df.iloc['c']
D. df[,'c']
- Assistant
A. df['c']
B. df.c
- User
What is the shape of this array [[1,2,3],[4,5,6]]?
Question 5Answer
A. (1,2,3)
B. (2,)
C. (3,2)
D. (2,3)
- Assistant
D. (2,3)
- User
Which pandas functions can NOT combine two pandas data frames into one? (There are two correct answers)
Question 3Answer
A. groupby()
B. merge()
C. concat()
D. aggregate()
- Assistant
A. groupby()
D. aggregate()