title: Print DataFrame Name
body: <p>I am a newbie to Python. Currently running 3.5.2.</p>
  
  <p>I would like a function to be able to capture the name of a pandas DataFrame that it has been passed. </p>
  
  <p>Rather than printing the DataFrame contents when I run my function, as my example below does, is there a way to get the DataFrame name (i.e. "df")?</p>
  
  <p>Thanks for any suggestions</p>
  
  <pre><code>#### Test Code ####
  # Import pandas module
  import pandas as pd
  
  # Create DataFrame
  df = pd.DataFrame({"A":[1,2,3], "B":[10,20,30]})
  
  # Define Function
  def test(data):
      print("Dataframe Name is: %s" % data)
      print(data.describe())
  
  # Run Function
  test(df)
  </code></pre>