index of pandas dataframe is lost when writing to Rds #68
Labels
enhancement
New feature or request
waiting for librdata changes
the issue needs some fixes to the C library librdata before it can be solved
Perhaps it's a known limitation, but I didn't find it in the README.
When writing a
pd.DataFrame
to.Rds
, the index is lost.Example:
In Python
In R:
I'm on linux 64 bit with Python 3.8.6 (Anaconda), R 4.0.3, and pyreadr 0.4.0 (installed from conda).
Expected behavior:
That the rownames of the R dataframe are the index of the pandas dataframe (i.e. 'a', 'b', 'c', 'd').
The text was updated successfully, but these errors were encountered: