mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Eliminated Pandas deprecation warning from MGXS Pandas DataFrame builder method
This commit is contained in:
parent
411e7f241a
commit
ead3f50d27
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue