title: How can I get the name of a DataFrame in Python?
body: <p>I have below python function to export data frame to csv file. I call it using below script</p>
  
  <pre><code>finalExport(dataAllR, sourcePath, header, started)
  </code></pre>
  
  <ul>
  <li><code>dataAllR</code>: Name of dataframe</li>
  <li><code>sourcePath</code>: Path</li>
  <li><code>header</code>: List of columns</li>
  <li><code>started</code>: time</li>
  </ul>
  
  <hr>
  
  <pre><code>def finalExport(data, exportPath, header, te):
      print('# USDF: "finalExport" :-')
      exportPath = exportPath + '\\final_py_upload' + data + '.csv'
      data.to_csv(exportPath, columns = header, sep = ',', index = False)
      print('Process done, result file stored in: ', exportPath)
      if te != '': tpe(te)
      return
  </code></pre>
  
  <p>I want to use name of dataframe i.e <code>dataAllR</code> that I passed while calling function in script:</p>
  
  <pre><code>exportPath = exportPath + '\\final_py_upload' + data + '.csv'
  #                                                ^
  </code></pre>
  
  <p>I want to generate file name as per data frame name.</p>
  
  <p>Please help on this.</p>