In [1]:
import numpy as np
import pandas as pd
import cec_utils as ut
from sklearn.cluster import KMeans

In [2]:
eng = ut.dbconfig(ut.user, ut.passwd, ut.dbname)
rawTreeCounts = pd.read_sql('select ceil(dead_trees_acre)::int dt_ac from lemmav2.lemma_total limit 100000', eng)

In [7]:
reload(ut)


Out[7]:
<module 'cec_utils' from 'cec_utils.py'>

In [40]:
rawTre


Out[40]:
dt_ac    20.310265
dtype: float64

In [8]:
ut.clusterFRCSVariable(rawTreeCounts)


Out[8]:
array([[   6.65790723],
       [  48.07872079],
       [ 122.90740741],
       [  21.99254261]])

In [ ]:
ut.clusterFRCSVariable(rawTreeCounts)

In [ ]:
runs = pd.