trynthink / scout

A tool for estimating the future energy use, carbon emissions, and capital and operating cost impacts of energy efficiency and demand flexibility technologies in the U.S. residential and commercial building sectors.
https://scout.energy.gov
Other
61 stars 23 forks source link

FutureWarning for diffusion code in ecm_prep #376

Closed jtlangevin closed 6 months ago

jtlangevin commented 8 months ago

Seeing the following FutureWarning outputs on master for the diffusion code portion of ecm_prep.py:

ecm_prep.py:8161: FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries is deprecated. In a future version, this will no longer exclude empty or all-NA columns when determining the result dtypes. To retain the old behavior, exclude the relevant entries before the concat operation.
  df.loc[len(df.index)] =\
ecm_prep.py:8164: FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries is deprecated. In a future version, this will no longer exclude empty or all-NA columns when determining the result dtypes. To retain the old behavior, exclude the relevant entries before the concat operation.
  df.loc[len(df.index)] =\
ecm_prep.py:8173: FutureWarning: 'Y' is deprecated and will be removed in a future version, please use 'YE' instead.
aspeake commented 6 months ago

FYI - fixing this causes tests to fail for python 3.8, so this fix should depend on https://github.com/trynthink/scout/issues/381