Eliminated Pandas deprecation warning from MGXS Pandas DataFrame builder method

This commit is contained in:
wbinventor@gmail.com 2016-02-21 21:29:49 -05:00
parent 411e7f241a
commit ead3f50d27

View file

@ -1467,7 +1467,7 @@ class MGXS(object):
# Sort the dataframe by domain type id (e.g., distribcell id) and
# energy groups such that data is from fast to thermal
df.sort([self.domain_type] + columns, inplace=True)
df.sort_values(by=[self.domain_type] + columns, inplace=True)
return df