Menu

#22 dataframe

open
nobody
None
5
2012-07-18
2004-03-21
Anonymous
No

I tried to use the DataFrame class and when I put in the
example from the documentation I got the following:

from rpy import
from dataframe import

class_table['data.frame'] = DataFrame
set_default_mode(CLASS_CONVERSION)
e = r.as_data_frame({'foo': [4,5,6], 'bar': ['X','Y','Z']
})
e
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/home/scott/scott/python_programs/dataframe.
py", line 15, in getattr
return self.dict[attr]
KeyError: 'repr'
</stdin>

scott.rifkin@yale.edu

Discussion

Anonymous
Anonymous

Add attachments
Cancel