styhero commited on
Commit
d292829
·
verified ·
1 Parent(s): 365c28c

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -25,6 +25,12 @@ def clean(val):
25
  s = str(val).strip()
26
  if s.lower() in ("nan", "none", ""):
27
  return ""
 
 
 
 
 
 
28
  return ", ".join(p.strip() for p in s.split("!") if p.strip())
29
 
30
  def sanitize_df(df):
@@ -288,7 +294,7 @@ st.markdown("""
288
  background-attachment: fixed !important;
289
  min-height: 100vh;
290
  }
291
- #MainMenu, footer, header { visibility: hidden; }
292
  .block-container {
293
  padding: 2.5rem 1.5rem 4rem !important;
294
  max-width: 680px !important;
 
25
  s = str(val).strip()
26
  if s.lower() in ("nan", "none", ""):
27
  return ""
28
+ # Strip trailing .0 from numeric values (DECIMAL stored as float)
29
+ if s.endswith(".0"):
30
+ try:
31
+ s = str(int(float(s)))
32
+ except Exception:
33
+ pass
34
  return ", ".join(p.strip() for p in s.split("!") if p.strip())
35
 
36
  def sanitize_df(df):
 
294
  background-attachment: fixed !important;
295
  min-height: 100vh;
296
  }
297
+ #MainMenu, footer, header { display: none !important; }
298
  .block-container {
299
  padding: 2.5rem 1.5rem 4rem !important;
300
  max-width: 680px !important;