What is the correct syntax to print the number 8 from the array below:
arr = np.array([[1,2,3,4,5], [6,7,8,9,10]])
aiml fast track day2
Quiz
•
Professional Development
•
University
•
Medium
Nithin G
Used 2+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the correct syntax to print the number 8 from the array below:
arr = np.array([[1,2,3,4,5], [6,7,8,9,10]])
print(arr[1, 2])
print(arr[7, 2])
print(arr[3, 0])
print(arr[7, 0])
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to create an array of type float?
arr = np.array([1, 2, 3, 4], dtype='f')
arr = np.float([1, 2, 3, 4])
arr = np.array([1, 2, 3, 4]).toFloat()
arr = np.array.float([1, 2, 3, 4])
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to add the labels "x", "y", and "z" to a Pandas Series?
pd.Series(mylist, labels = ["x", "y", "z"])
pd.Series(mylist, names = ["x", "y", "z"])
pd.Series(mylist, index = ["x", "y", "z"])
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct Pandas function for loading CSV files into a DataFrame?
read_file()
ReadFile()
read_csv()
ReadCSV()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For the Pandas head() method, how many rows are returned by default, if you do not specify it?
10
5
0
1
9 questions
Python Basic
Quiz
•
University
10 questions
Scientific Python
Quiz
•
KG - Professional Dev...
10 questions
Idealna prezentacja
Quiz
•
University
10 questions
Cost accounting - 2
Quiz
•
University
10 questions
Arreglos (Arrays) en Programación I
Quiz
•
University
10 questions
Python-set
Quiz
•
University
10 questions
Arrays - 2D
Quiz
•
University
9 questions
Pierwsza pomoc w nagłych wypadkach
Quiz
•
1st Grade - Professio...
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade