NREL / foundational-industry-energy-data

The Foundational Industry Energy Dataset (FIED) is a unit-level characterization of energy use in the U.S. industrial sector.
https://nrel.github.io/foundational-industry-energy-data/
2 stars 0 forks source link

Melted columns FutureWarning #5

Open calmc opened 11 months ago

calmc commented 11 months ago

the melt_multiple_ids method in fied_compilation.py results in a FutureWarning:

C:\Users\cmcmilla\foundational-industry-energy-data\fied_compilation.py:168: 
FutureWarning: This dataframe has a column name that matches the 'value_name' column name of the resulting Dataframe. 
In the future this will raise an error, please set the 'value_name' parameter of DataFrame.melt to a unique name.
  frs_mult = frs_mult.melt(

This is the section of code that needs to be addressed (i.e., changing value_name parameter):

    frs_mult = frs_mult.melt(
        id_vars=['registryID'], value_name=col_names[0]
        ).drop('variable', axis=1)