unable to import pandas in rstudio using r markdown document

Hi, I'm trying to utilize python via an r markdown document in r studio. I was able to import numpy but not pandas. I made sure to activate a conda environment that I know contains pandas (although all of my environments contain pandas) but had no luck. Am I missing something? Below is my markdown doc...

{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(reticulate)
import numpy as np
import pandas as pd
Python 3.8.3 (/usr/local/bin/python3.8)
Reticulate 1.18 REPL -- A Python interpreter in R.
ModuleNotFoundError: No module named 'pandas'

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.