Within a local conversion context established with the default_converter and pandas2ri.converter local converters, I am obtaining a rpy2.robjects.vectors.BoolMatrix object (assigned to a variable res):
<rpy2.robjects.vectors.BoolMatrix object at 0x7fa48d531040> [RTYPES.LGLSXP]
R classes: ('matrix', 'array')
[NA, NA, NA]
I need to build a pandas dataframe from this object. However, the conversion gives:
pd.DataFrame(res)
0
0 -2147483648
1 -2147483648
2 -2147483648
How can I ensure this kind of matrix is converted to nan values?