Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -137,7 +137,7 @@ except Exception:
|
|
137 |
def rounded_df(df):
|
138 |
df = df.copy()
|
139 |
for col in df.columns:
|
140 |
-
if isinstance(col.values[0], float):
|
141 |
df[col] = df[col].apply(lambda x: round(x, 2))
|
142 |
return df
|
143 |
|
|
|
137 |
def rounded_df(df):
|
138 |
df = df.copy()
|
139 |
for col in df.columns:
|
140 |
+
if isinstance(df[col].values[0], float):
|
141 |
df[col] = df[col].apply(lambda x: round(x, 2))
|
142 |
return df
|
143 |
|