Creation of test.apply global method

parent 0bd3c574
This diff could not be displayed because it is too large.
...@@ -15,7 +15,23 @@ class Test(): ...@@ -15,7 +15,23 @@ class Test():
self.alpha = alpha self.alpha = alpha
def apply(self,df1,df2): def apply(self,df1,df2,criteriaColumn1,criteriaColumn2, visualizer = None):
df = pd.concat([df1,df2], axis=1)
numeric_cols = [col for col, dtype in zip(df.columns, df.dtypes) if dtype != 'object']
print("---------------------------------------NORMALITY TEST---------------------------------------")
normal_results =self.applyNormalTest(df)
normal_features= set()
for key in normal_results[1]:
normal_features= normal_features | set(normal_results[key])
print("---------------------------------------PARAMETRIC TEST---------------------------------------")
parametricResults = self.applyParametricTest(df1, df2, criteriaColumn1,criteriaColumn2, normal_features)
print("---------------------------------------NON-PARAMETRIC TEST---------------------------------------")
nonParametricResults = self.applyNonParametricTest(df1, df2, criteriaColumn1,criteriaColumn2, numeric_cols)
dicResults = {"normalTest":normal_results,"parametricTest":parametricResults,"nonParametricTes":nonParametricResults}
return dicResults
#Hay que poner gráficas: #Hay que poner gráficas:
# qUARTIL QUARTIL # qUARTIL QUARTIL
# Box Plot # Box Plot
......
...@@ -87,6 +87,10 @@ class Visualization(): ...@@ -87,6 +87,10 @@ class Visualization():
plt.show() plt.show()
pass pass
def show_wordCloud(self): def show_wordCloud(self,df,textColumns, groupby=None):
pass if type(textColumns) == str:
pass
else:
pass
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment