Skip to content

Commit dcc9d68

Browse files
committed
switch from applymap to map for df
1 parent e28742f commit dcc9d68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

oceanval/tidiers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def df_display(df):
5454
# coerce numeric columns to str
5555
# if number is in the column title, make sure the variable is int
5656

57-
df = df.applymap(lambda x: f"{x:.2f}" if isinstance(x, float) else x)
57+
df = df.map(lambda x: f"{x:.2f}" if isinstance(x, float) else x)
5858
# capitalize unit column name, if it exists
5959
if "unit" in df.columns:
6060
df = df.rename(columns={"unit": "Unit"})

0 commit comments

Comments
 (0)