Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -252,7 +252,7 @@ def server(input,output,session):
|
|
252 |
# ax.annotate(data_df.batter[i], (data_df[x_stat][i]-len(data_df.batter[i])*0.00025, data_df[y_stat][i]+0.001),fontsize=8)
|
253 |
ts.append(ax.text(data_df[x_stat][i], data_df[y_stat][i], data_df.batter_name[i],fontsize=8))
|
254 |
|
255 |
-
if input.and_or_filter() == '
|
256 |
for i in range(len(data_df)):
|
257 |
if ((data_df[x_stat].values[i] < x_min or data_df[x_stat].values[i] > x_max ) \
|
258 |
or (data_df[y_stat].values[i] < y_min or data_df[y_stat].values[i] > y_max)) \
|
|
|
252 |
# ax.annotate(data_df.batter[i], (data_df[x_stat][i]-len(data_df.batter[i])*0.00025, data_df[y_stat][i]+0.001),fontsize=8)
|
253 |
ts.append(ax.text(data_df[x_stat][i], data_df[y_stat][i], data_df.batter_name[i],fontsize=8))
|
254 |
|
255 |
+
if input.and_or_filter() == 'or':
|
256 |
for i in range(len(data_df)):
|
257 |
if ((data_df[x_stat].values[i] < x_min or data_df[x_stat].values[i] > x_max ) \
|
258 |
or (data_df[y_stat].values[i] < y_min or data_df[y_stat].values[i] > y_max)) \
|