Question: Please write unit test for both function in python def function1(): import and clean data oj1 = pd.read_csv(oj2.csv) oj1 = oj1.dropna() oj1.info() oj1['Q'] = np.exp(oj1['logmove'])

Please write unit test for both function in python

def function1(): "import and clean data" oj1 = pd.read_csv("oj2.csv") oj1 = oj1.dropna() oj1.info()

oj1['Q'] = np.exp(oj1['logmove']) oj1.info()

def function2(oj1): "data visualization"

sns.boxplot(data=oj1, x="brand", y="price") plt.show()

sns.boxplot(data=oj1, x="brand", y="logmove") plt.show()

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!