title: Python - Pandas - Write Dataframe to CSV
body: <p>I'm trying to write a 4 table, 3 column, and 50 row dataframe file to a csv using pandas. I'm getting the following error <code>AttributeError: 'dict' object has no attribute 'to_csv'</code>. I believe I'm writing the syntax correctly, but could anyone point out where my syntax is incorrect in trying to write a dataframe to a csv?</p>
  
  <pre><code>'dict' object has no attribute 'to_csv'
  
  import pandas as pd
  import numpy as np
  
  df = pd.read_excel("filelocation.xlsx",
      sheetname=['pnl1 Data ','pnl2 Data','pnl3 Data','pnl4 Data'],
      skiprows=8, parse_cols="B:D", keep_default_na='FALSE', na_values=['NULL'])
  
  df.to_csv('filelocation.csv', line_terminator=',', index=False, header=False) #error occurs on this line
  </code></pre>