Is there a function to convert pandas panel (3-dimensional) object to a rpy2.Array
object?
I was able to do this to convert only the data to rpy2.Array
. But this doesnt set the dimnames/names for the array object.
arrayobj = rpy2.robjects.numpy2ri.numpy2ri(panelobj.values)
Is there a clean way of converting the panel to rpy2.Array
?