Write a function that will take in as a single input the name of a CSV file and will write tomultiple csv files the output of a descriptive analysis. Your code for your function should do...

1 answer below »
Write a function that will take in as a single input the name of a CSV file and will write tomultiple csv files the output of a descriptive analysis. Your code for your function should do thefollowing:• Load in the file as a pandas DataFrame• Automatically isolate the numerical variables (float64 and int64)1D.S. 2001 Business Practicum Workshop 7• Conduct a descriptive analysis on the numerical variables, and print the results to a filecalled "descriptive_output.csv".• Find the correlation table, and print the results to a file called "correlation_output.csv"In addition to this function, you should write a second function that also takes in the nameof the file as input and a list of categorical variables to analyze, and conducts the following:• Load in the file as a pandas DataFrame• For each variable name specified in the list:–Find the percentage table, and convert it to strings with the "%" symbol at the end.–Write to a file called "categorical_[variable_name]", where "[variable_name]" is re-placed with the name of the variable (i.e. column name) under analysis.
Answered 114 days AfterOct 28, 2021

Answer To: Write a function that will take in as a single input the name of a CSV file and will write...

Sathishkumar answered on Feb 20 2022
111 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here