-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcase.py
More file actions
39 lines (24 loc) · 1.04 KB
/
Copy pathcase.py
File metadata and controls
39 lines (24 loc) · 1.04 KB
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
27
28
29
30
31
32
33
34
35
import matplotlib.pyplot as plt
from scipy import stats
from config import *
complete_data = parser("Ethnic Enclave Data MAR _ S.csv")
# data with ecdis & poldis < 3
low_level_data = ecdisselector(poldisselector(complete_data, ["0", "1", "2"]), ["0", "1", "2"])
# data with ecids & poldis => 3
high_level_data = ecdisselector(poldisselector(complete_data, ["3", "4"]), ["3", "4"])
# for i in low_level_data:
# print("Case #: {} \n POLDIS #: {} \n ECDIS #: {} ".format(i, low_level_data[i].POLDIS, low_level_data[i].ECDIS))
# print("-" * 10)
#
# print("--------------------------------------------------------------")
y_values = []
x_values = []
for i in complete_data:
if complete_data[i].GROUPCON == "-99":
continue
if complete_data[i].CCGROUPSEV1 == "-99":
continue
y_values.append(int(complete_data[i].GROUPCON))
x_values.append(int(complete_data[i].CCGROUPSEV1))
# Demonstration of data analysis using Groupcon vs. CCSEV1 values.
scatterplot(y_values, "GROUPCON", x_values, "CCSEV1", "GROUPCON-vs-CCSEV1")