Multichem commited on
Commit
00619bb
·
1 Parent(s): 0c66ac1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -80,8 +80,16 @@ with tab1:
80
  if proj_file is not None:
81
  try:
82
  proj_dataframe = pd.read_csv(proj_file)
 
 
 
 
83
  except:
84
  proj_dataframe = pd.read_excel(proj_file)
 
 
 
 
85
  with col2:
86
  if proj_file is not None:
87
  st.dataframe(proj_dataframe.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
 
80
  if proj_file is not None:
81
  try:
82
  proj_dataframe = pd.read_csv(proj_file)
83
+ try:
84
+ proj_dataframe = proj_dataframe.replace(',','', regex=True)
85
+ except:
86
+ pass
87
  except:
88
  proj_dataframe = pd.read_excel(proj_file)
89
+ try:
90
+ proj_dataframe = proj_dataframe.replace(',','', regex=True)
91
+ except:
92
+ pass
93
  with col2:
94
  if proj_file is not None:
95
  st.dataframe(proj_dataframe.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)