hddm-devs / hddm

HDDM is a python module that implements Hierarchical Bayesian parameter estimation of Drift Diffusion Models (via PyMC).
http://ski.clps.brown.edu/hddm_docs/
Other
263 stars 119 forks source link

Problems with Pandas 0.13 #35

Closed mwaskom closed 10 years ago

mwaskom commented 10 years ago

I'm trying HDDM for the first time so I might be doing something dumb, but I'm getting errors that look like they are caused by Series no longer being an NDArray in pandas 0.13.

See gist here with data file, script, and the full traceback.

The short version is that

hddm.HDDM(df)

takes a long and winding road to raising

TypeError: Argument 'x' has incorrect type (expected numpy.ndarray, got Series)

with

print df.head()

     rt             response subj_idx
0  1.207926         1     pc07
1  1.772109         1     pc07
2  1.005322         1     pc07
3  1.505597         0     pc07
4  1.974979         1     pc07

I installed pandas from the github release right before doing this (it's not on PyPi for some reason).

twiecki commented 10 years ago

Indeed, can reproduce with pandas 0.13. Will fix soon.

twiecki commented 10 years ago

Seems like a pandas error to me. If you can I'd just downgrade to 0.12.