Fixing df.drop call using newer pandas syntax instead of backwards-compatible syntax

This commit is contained in:
Adam G Nelson 2018-05-05 11:15:11 -04:00
parent cd300249f2
commit 45d9234fdf

View file

@ -4505,7 +4505,7 @@ class ScatterMatrixXS(MatrixMGXS):
# If the matrix is P0, remove the legendre column
if self.scatter_format == 'legendre' and self.legendre_order == 0:
df = df.drop(columns=['legendre'])
df = df.drop(axis=1, labels=['legendre'])
return df