Tyler Burns commited on
Commit
7f8b789
1 Parent(s): b78c45d

debugging categorical data

Browse files
Files changed (2) hide show
  1. app.py +0 -1
  2. flycheck_app.py +0 -1
app.py CHANGED
@@ -38,7 +38,6 @@ columns = ['title', 'href', 'body']
38
 
39
  # Clustering
40
  labels = cluster.KMeans(n_clusters=5).fit_predict(dimr[['umap1', 'umap2']])
41
- labels = labels.astype('category')
42
  dimr['cluster'] = labels
43
 
44
  # Merge the data together
 
38
 
39
  # Clustering
40
  labels = cluster.KMeans(n_clusters=5).fit_predict(dimr[['umap1', 'umap2']])
 
41
  dimr['cluster'] = labels
42
 
43
  # Merge the data together
flycheck_app.py CHANGED
@@ -38,7 +38,6 @@ columns = ['title', 'href', 'body']
38
 
39
  # Clustering
40
  labels = cluster.KMeans(n_clusters=5).fit_predict(dimr[['umap1', 'umap2']])
41
- labels = labels.astype('category')
42
  dimr['cluster'] = labels
43
 
44
  # Merge the data together
 
38
 
39
  # Clustering
40
  labels = cluster.KMeans(n_clusters=5).fit_predict(dimr[['umap1', 'umap2']])
 
41
  dimr['cluster'] = labels
42
 
43
  # Merge the data together