nastasiasnk commited on
Commit
ad932aa
1 Parent(s): 56aa7c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -113,13 +113,15 @@ for name in df_lu.columns:
113
  if name.startswith("lu+"):
114
  lu_columns.append(name)
115
  df_lu_filtered = df_lu[lu_columns].loc[mask_connected]
 
116
  df_lu_filtered.columns = [col.replace('lu+', '') for col in df_lu_filtered.columns]
 
117
 
 
118
  df_lu_filtered_dict = df_lu_filtered.to_dict('index')
119
 
120
 
121
 
122
-
123
  def test(input_json):
124
  print("Received input")
125
  # Parse the input JSON string
 
113
  if name.startswith("lu+"):
114
  lu_columns.append(name)
115
  df_lu_filtered = df_lu[lu_columns].loc[mask_connected]
116
+
117
  df_lu_filtered.columns = [col.replace('lu+', '') for col in df_lu_filtered.columns]
118
+ df_lu_filtered.columns = [col.replace('ASSETS+', '') for col in df_lu_filtered.columns]
119
 
120
+ df_lu_filtered = df_lu_filtered.astype(str)
121
  df_lu_filtered_dict = df_lu_filtered.to_dict('index')
122
 
123
 
124
 
 
125
  def test(input_json):
126
  print("Received input")
127
  # Parse the input JSON string