Question: Write a Python code following statements: 1- Write a function named filter_func (df, column, value_list) . Output will be 'df'. A function to filter the
Write a Python code following statements:
1- Write a function named filter_func (df, column, value_list). Output will be 'df'. A function to filter the content of the given column of df with the values given in list form. 2- Write a function named apply_math_sq (df, column, value=2). Output will be df. df is a function to square the values of the given column. 3- Write a function named filter_str_starts (df, column, value). Output will be df. Df is a function that filters the column that has a value in the given column. For example, column name is 'City', value is 'Los'. City column will be filtered with names starting with 'los'
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
