Clémentine commited on
Commit
4b511b7
·
1 Parent(s): 4476a88

added management of unknown param numbers

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -237,12 +237,13 @@ def select_columns(df: pd.DataFrame, columns: list) -> pd.DataFrame:
237
  return filtered_df
238
 
239
  NUMERIC_INTERVALS = {
240
- "< 1.5B": pd.Interval(0, 1.5, closed="both"),
241
- "~3B": pd.Interval(1.5, 5, closed="both"),
242
- "~7B": pd.Interval(6, 11, closed="both"),
243
- "~13B": pd.Interval(12, 15, closed="both"),
244
- "~35B": pd.Interval(16, 55, closed="both"),
245
- "60B+": pd.Interval(55, 10000, closed="both"),
 
246
  }
247
 
248
  def filter_models(
 
237
  return filtered_df
238
 
239
  NUMERIC_INTERVALS = {
240
+ "Unknown": pd.Interval(-1, 0, closed="right"),
241
+ "< 1.5B": pd.Interval(0, 1.5, closed="right"),
242
+ "~3B": pd.Interval(1.5, 5, closed="right"),
243
+ "~7B": pd.Interval(6, 11, closed="right"),
244
+ "~13B": pd.Interval(12, 15, closed="right"),
245
+ "~35B": pd.Interval(16, 55, closed="right"),
246
+ "60B+": pd.Interval(55, 10000, closed="right"),
247
  }
248
 
249
  def filter_models(