title: How to create Global DataFrame and append the same in outside the Function in Python
body: <p>How to create Global DataFrame and append the same in outside the Function in Python</p>
  
  <p>How can i create Global Dataframe </p>
  
  <pre><code>import pandas as pd
  import os
  from numpy import *
  
  l=pd.DataFrame(columns=['Article name','Ean','Status'])
  
  def d():
      df2 = pd.DataFrame({"Article name":['shirt'],"Ean":[89],             "Status":'Success'})
  
  
  d()
  l=l.append(df2)
  
  print(l)
  
  
  print(l)
  </code></pre>
  
  <pre><code>Article name Ean Status
  Shirt         89  Success
  </code></pre>