title: accessing pandas dataframe from one file into another file
body: <p>I have 2 files wherein in one file i have created two functions. In the first function I have created a dataframe. and i am using that dataframe as an input into another file. For eg</p>
  
  <p>file1.py</p>
  
  <pre><code>def function1():
      df = pd.Dataframe()
  def function2(df):
      return df.
  </code></pre>
  
  <p>file2.py</p>
  
  <pre><code>from file1 import function1,function2
  return function2(df)
  </code></pre>
  
  <p>The error says: NameError: name 'df' is not defined</p>
  
  <p>I am running file2.py first which calls functions from file1.py</p>