|
@@ -35,14 +35,14 @@ from scipy.cluster.hierarchy import dendrogram, linkage, cophenet, fcluster
|
35
|
35
|
#
|
36
|
36
|
# plt.show()
|
37
|
37
|
|
38
|
|
-numclusts = 7
|
|
38
|
+numclusts = 9
|
39
|
39
|
df = p.read_pickle('../data/2017-sample.pkl')
|
40
|
40
|
dforig = df
|
41
|
41
|
|
42
|
42
|
print(df.info())
|
43
|
43
|
print(df.icp_id.nunique())
|
44
|
44
|
print(df.read_time.nunique())
|
45
|
|
-print(df.groupby('icp_id').read_time.nunique().nunique())
|
|
45
|
+# print(df.groupby('icp_id').read_time.nunique().nunique())
|
46
|
46
|
df = df.pivot(index = 'read_time', columns = 'icp_id', values = 'kwh_tot')
|
47
|
47
|
df = df[df.columns[df.max() != df.min()]]
|
48
|
48
|
print(df.info())
|