title: How to import pandas using R studio
body: <p>So, just to be clear, I'm very new to python coding... so I'm not exactly sure what's going wrong.</p>
  
  <p>Yesterday, whilst following a tutorial on calling python from R, I successfully installed and used several python packages (e.g., NumPy, pandas, matplotlib etc). </p>
  
  <p>But today, when trying to run the exact same code, I'm getting an error when trying to import pandas (NumPy is importing without any errors). The error states:</p>
  
  <pre><code>ModuleNotFoundError: No module named 'pandas'
  </code></pre>
  
  <p>I'm not sure what's going on!?
  I'm using R-Studio (running on a Mac)... here's a code snippet of how I'm doing it:</p>
  
  <pre><code>library(reticulate) 
  os &lt;- import("os") # Setting directory
  os$getcwd()
  repl_python()       #used to make it interactive 
  import numpy as np. # Load numpy  package
  import pandas as pd # Load pandas package
  </code></pre>
  
  <p>At this point, it's throwing me an error. I've tried googling the answer and searching here, but to no avail. </p>
  
  <p>Any suggestions as to how I'd fix this problem, or what is going on?
  Thanks</p>