load_dataframe

eia.load_dataframe(data, download_data=None, data_dir=None)

Loads the eia data into a pd.DataFrame

Parameters
  • data – string, required. Must be one of ‘electric-power-operational-data’,’facility-fuel’, ‘operating-generator-capacity’, ‘retail-sales’, ‘rto-daily-fuel-type-data’, ‘rto-daily-interchange-data’, ‘rto-daily-region-data’,’rto-daily-region-sub-ba-data’, ‘rto-fuel-type-data’,’rto-interchange-data’,’rto-region-data’, ‘rto-region-sub-ba-data’, ‘state-electricity-profiles-capability’, ‘state-electricity-profiles-emissions-by-state-by-fuel’, ‘state-electricity-profiles-meters’, ‘state-electricity-profiles-net-metering’, ‘state-electricity-profiles-source-disposition’,’state-electricity-profiles-summary’

  • download_data – (Optional) boolean or None. If None, downloads the data if the target CSV file does not exist. If True, always downloads the file. If False, never download the data.

  • data_dir – (Optional) string base directory to store the data in.