Complete the code to create a data analysis agent pipeline that loads data.
data = [1]('data.csv')
The pd.read_csv function loads CSV data into a DataFrame, which is essential for analysis.
Complete the code to filter rows where the 'age' column is greater than 30.
filtered_data = data[data['age'] [1] 30]
The operator > filters rows where 'age' is greater than 30.
Fix the error in the code to calculate the mean of the 'salary' column.
average_salary = data['salary'].[1]()
The mean() function calculates the average value of the 'salary' column.
Fill both blanks to create a dictionary comprehension that maps each word to its length if the length is greater than 3.
{word: [1] for word in words if [2]The dictionary comprehension maps each word to its length using len(word). The condition len(word) > 3 filters words longer than 3 characters.
Fill all three blanks to create a dictionary comprehension that maps uppercase words to their values if the value is greater than 0.
result = [1]: [2] for k, v in data.items() if v [3] 0
The comprehension maps keys converted to uppercase (k.upper()) to their values (v) only if the value is greater than zero (> 0).
