When converting a dataframe from python to R, something is transposing columns into rows.
I didn't dig too much, but I think the problem is this: when converting the pandas dataframe column, we end up here: https://bitbucket.org/rpy2/rpy2/src/4bdd4962f5f4477de36410a670511b33b7f8c201/rpy/robjects/pandas2ri.py?at=default&fileviewer=file-view-default#pandas2ri.py-127:134
The problem is this:
- we see a column (shape is 1D) that doesn't happen to be all strings/None
- it's of dtype object
- we convert it to R, and then assign the index as the names
The last step is the killer: this turns our Nx1 object into a 1xN object.