Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete 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'
Attempts:
3 left
2fill in blank
mediumComplete 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'
Attempts:
3 left
3fill in blank
hardFix 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'
Attempts:
3 left
4fill in blank
hardFill 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'
Attempts:
3 left
5fill in blank
hardFill 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'
Attempts:
3 left
