0
0
Agentic_aiml~10 mins

Data analysis agent pipeline in Agentic Ai - Interactive Code Practice

Choose your learning style8 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a data analysis agent pipeline that loads data.

Agentic_ai
data = [1]('data.csv')
Drag options to blanks, or click blank then click option'
Aload_data
Bopen
Cread_file
Dpd.read_csv
Attempts:
3 left
2fill in blank
medium

Complete the code to filter rows where the 'age' column is greater than 30.

Agentic_ai
filtered_data = data[data['age'] [1] 30]
Drag options to blanks, or click blank then click option'
A<=
B>
C==
D<
Attempts:
3 left
3fill in blank
hard

Fix the error in the code to calculate the mean of the 'salary' column.

Agentic_ai
average_salary = data['salary'].[1]()
Drag options to blanks, or click blank then click option'
Amean
Bcount
Cmedian
Dsum
Attempts:
3 left
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps each word to its length if the length is greater than 3.

Agentic_ai
{word: [1] for word in words if [2]
Drag options to blanks, or click blank then click option'
Alen(word)
Bword > 3
Clen(word) > 3
Dword
Attempts:
3 left
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps uppercase words to their values if the value is greater than 0.

Agentic_ai
result = [1]: [2] for k, v in data.items() if v [3] 0
Drag options to blanks, or click blank then click option'
Ak.upper()
Bv
C>
Dk.lower()
Attempts:
3 left