Commit 40f16710 authored by Asitha Senanayake's avatar Asitha Senanayake
Browse files

Replace applymap() method with map() method

.DataFrame.applymap() method has been deprecated in Pandas v2.1 in favor
of an updated DataFrame.map() method.
parent 08ea7c6f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -686,7 +686,7 @@ def format_numeric_column(dataframe, column_name, TYPE):
            # Apply formatting DATA rows with real numbers. NaNs will be avoided so that they will be exported
            # as "" rather than "nan"
            mask = (df.HEADING == "DATA") & df[col].notna()
            df.loc[mask, [col]] = df.loc[mask, [col]].applymap(lambda x: _format_SF(x, TYPE))
            df.loc[mask, [col]] = df.loc[mask, [col]].map(lambda x: _format_SF(x, TYPE))

        else:
            pass