What scikit-learn class is used for linear regression? (Enter the class name as it appears in code)
Blog
Code Correction: The following code is supposed to filter a…
Code Correction: The following code is supposed to filter a DataFrame to show only rows where salary is greater than 50000 and department is ‘Sales’, but it has errors. Identify and fix ALL the errors. filtered = df[df[‘salary’] > 50000 and df[‘department’] == ‘Sales’] print(filtered) Write the corrected code below:
What DataFrame method sorts values by a specified column? (E…
What DataFrame method sorts values by a specified column? (Enter just the method name)
How do you filter a DataFrame to get rows where ‘age’ > 30?
How do you filter a DataFrame to get rows where ‘age’ > 30?
What NumPy function creates an array of evenly spaced values…
What NumPy function creates an array of evenly spaced values within a given range? (Enter just the function name after np.)
How do you filter a DataFrame to get rows where ‘age’ > 30?
How do you filter a DataFrame to get rows where ‘age’ > 30?
Given arr = np.array([[1,2,3],[4,5,6]]), what is arr.shape?
Given arr = np.array([[1,2,3],[4,5,6]]), what is arr.shape?
Given arr = np.array([[1,2,3],[4,5,6]]), what is arr.shape?
Given arr = np.array([[1,2,3],[4,5,6]]), what is arr.shape?
What function reads a CSV file into a DataFrame?
What function reads a CSV file into a DataFrame?
What is the difference between df.loc[] and df.iloc[]?
What is the difference between df.loc[] and df.iloc[]?