Browse Source

parameter change

Petra Lamborn 5 years ago
parent
commit
0af67c2b17
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      py/clustering.py

+ 2
- 2
py/clustering.py View File

@@ -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())