title: Pandas Profiling - NameError: name 'pandas_profiling' is not defined
body: <p>Experts,</p>
  
  <p>Here is my block of code and I am getting the below error.</p>
  
  <pre><code>import pandas 
  import os
  trainFile = r'C:\PythonProjects\sample.csv'
  pwd = os.getcwd()
  os.chdir(os.path.dirname(trainFile))
  trainData = pandas.read_csv(os.path.basename(trainFile))
  p=pandas_profiling.ProfileReport(trainData)
  os.chdir(pwd)
  </code></pre>
  
  <blockquote>
    <p>--------------------------------------------------------------------------- NameError                                 Traceback (most recent call
    last)  in ()
          6 trainData = pandas.read_csv(os.path.basename(trainFile))
    ----> 7 p=pandas_profiling.ProfileReport(trainData)
          8 os.chdir(pwd)</p>
  </blockquote>
  
  <p>Can you provide your inputs/suggestions to resolve this error pls.
  NameError: name 'pandas_profiling' is not defined</p>