I am looking to integrate python code into a r notebook (or even a rmarkdown document). I am able to run Python using a python code chunk:
```{python}
```
However I am unable to import a package (e.g. pandas). I have anaconda installed which has pandas installed, however I am unable to import it. Can anyone give me direction as to how I can import packages into r via knitr, preferably using anaconda?
{python, engine.path="/path/to/your/anaconda3/bin/python"}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With