nastasiasnk commited on
Commit
a25db2a
1 Parent(s): 3749345

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -79,7 +79,7 @@ else:
79
 
80
  df_dm = matrices[distanceMatrixActivityNodes]
81
  # Replace infinity with 10000 and NaN values with 0, then convert to integers
82
- dfLanduses = dfLanduses.replace([np.inf, -np.inf], 10000).fillna(0)
83
  df_dm = df_dm.apply(pd.to_numeric, errors='coerce')
84
  df_dm = df_dm.round(0).astype(int)
85
 
 
79
 
80
  df_dm = matrices[distanceMatrixActivityNodes]
81
  # Replace infinity with 10000 and NaN values with 0, then convert to integers
82
+ df_dm = df_dm.replace([np.inf, -np.inf], 10000).fillna(0)
83
  df_dm = df_dm.apply(pd.to_numeric, errors='coerce')
84
  df_dm = df_dm.round(0).astype(int)
85