ModuleNotFoundError: No module named 'pandas.rpy' ModuleNotFoundError: No module named 'pandas.rpy' pandas pandas

ModuleNotFoundError: No module named 'pandas.rpy'


pandas.rpy module was deprecated and later removed. It does not exist in the version you are currently using.

You can either downgrade your pandas version, or better yet, have a look at the new rpy2 project.

From pandas documentation:

Up to pandas 0.19, a pandas.rpy module existed with functionality to convert between pandas and rpy2 objects. This functionality now lives in the rpy2 project itself. See the updating section of the previous documentation for a guide to port your code from the removed pandas.rpy to rpy2 functions.

You can see the rpy2 documentation here, and panda's reference for it here.

edit: per Analytical Monk's comment, corrected the phrasing to refer rpy2 as a different library, and not a part of pandas