forked from shivam5992/mongoEDA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.py
26 lines (22 loc) · 940 Bytes
/
run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from DataExplorationEngine import add, eda, vis
# load data
# datatypes = {
# 'floats' : ['SepalLength','SepalWidth','PetalLength','PetalWidth']
# }
# add.load_csv("data/iris.csv", "irisdata", datatypes)
# perform EDA
key = "Species" #key can be any variable
# print eda.identify_variable_type('SepalLength','irisdata')
# print eda.identify_variable_type('SepalWidth','irisdata')
# print eda.identify_variable_type('PetalLength','irisdata')
# print eda.identify_variable_type('PetalWidth','irisdata')
# print eda.identify_variable_type('Species','irisdata')
# uni = eda.univariate_analysis(key,"irisdata", central_tendencies = False)
# vis.create_univariate_table(uni, key)
collname = "irisdata"
key1 = "SepalLength"
key2 = "SepalWidth"
# bi = eda.bivariate_analysis(key1, key2, collname)
# print 'std_dev',eda.get_std_dev(key1,collname)
# print 'outlier detection',eda.get_outliers(key1,collname)
# vis.createBiTable(bi, key1, key2)