ngocminhta commited on
Commit
bd46dcb
1 Parent(s): ccdf1f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -7,6 +7,7 @@ df = pd.read_csv("Diemthi2024_processed.csv")
7
  def respond(
8
  sbd, khoi
9
  ):
 
10
  score = df[df['sbd'] == int(sbd)]
11
  count_all = (df[khoi] >= score[khoi].iloc[0]).sum()
12
  count_kv = ((df[khoi] >= score[khoi].iloc[0]) & (df['kv'] == score['kv'].iloc[0])).sum()
 
7
  def respond(
8
  sbd, khoi
9
  ):
10
+ khoi = khoi.lower()
11
  score = df[df['sbd'] == int(sbd)]
12
  count_all = (df[khoi] >= score[khoi].iloc[0]).sum()
13
  count_kv = ((df[khoi] >= score[khoi].iloc[0]) & (df['kv'] == score['kv'].iloc[0])).sum()