Question: Here is two function in python about data analysis, PLEASE WRITE one unit test for both functions def fucntion3(df): descriptive statistics df.corr() plt.figure(figsize = (15,

Here is two function in python about data analysis, PLEASE WRITE one unit test for both functions

def fucntion3(df): "descriptive statistics" df.corr()

plt.figure(figsize = (15, 15)) heatmap = sns.heatmap(df.corr(), vmin = -1, vmax = 1, annot = True) heatmap.set_title('Correlation Heatmap', fontdict = {'fontsize' : 12}, pad = 12)

df.describe()

def function4(df): "Run model" mod = smf.ols(formula = 'Y ~ X1 + X2 + X3 + X4 + X5 ', data = df) res = mod.fit() print(res.summary())

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!