There was an error while loading. Please reload this page.
1 parent e28742f commit dcc9d68Copy full SHA for dcc9d68
1 file changed
oceanval/tidiers.py
@@ -54,7 +54,7 @@ def df_display(df):
54
# coerce numeric columns to str
55
# if number is in the column title, make sure the variable is int
56
57
- df = df.applymap(lambda x: f"{x:.2f}" if isinstance(x, float) else x)
+ df = df.map(lambda x: f"{x:.2f}" if isinstance(x, float) else x)
58
# capitalize unit column name, if it exists
59
if "unit" in df.columns:
60
df = df.rename(columns={"unit": "Unit"})
0 commit comments