Answer Key
University
American Baptist CollegeCourse
CSCI 1534 | Data Analysis and VisualizationPages
3
Academic year
2023
Muthia Marhamah
Views
0
Answer this question. 1. If you have a NumPy array 'arr' representing 'writing score' and you want to find the score at 75th percentile, which command would you use? A. np.quantile(arr, 75) B. np.median(arr, 75) C. np.percentile(arr, 75) D. np.percentile(arr, 0.75) 2. Which of the following commands can summarize the 'race/ethnicity' column? A. df['race/ethnicity'].sum() B. df.sum()['race/ethnicity'] C. df['race/ethnicity'].count()
D. df['race/ethnicity'].describe() 3. What type of data is contained in the 'test preparation course' column? A. Numerical B. Categorical C. Boolean D. Datetime 4. Which of the following commands would you use to convert the 'math score' column into a NumPy array? A. np.array(df['math score']) B. df['math score'].to_numpy() C. np.asarray(df['math score']) D. All of the above are correct
Quiz 10 Python for Data Analyst
Please or to post comments