title: Pycharm -- import function doesn't find the function doesn't recognize imported modules
body: <p>If in the main python script numpy and pandas are imported </p>
  
  <pre><code>import pandas as pd
  import numpy  as np
  </code></pre>
  
  <p>and a function is then imported from funcs.py that uses pandas</p>
  
  <pre><code>import funcs.py  as fp
  report = fp.generate_report(arguments)
  </code></pre>
  
  <p>results in an error --> NameError: name pd is not defined when function is called</p>
  
  <p>Do I have to import pandas within every function that uses it in pycharm?</p>