M17idd commited on
Commit
1529e73
·
verified ·
1 Parent(s): dbaae56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -144,15 +144,11 @@ ui.include_css(app_dir / "styles.css")
144
  def tips_data():
145
  سنی = input.سن() # مقدار رنج سنی
146
  تاریخ_انتخابی = input.time() # تاریخ‌های انتخابی
147
- print(f"Selected age range: {سنی}")
148
- print(f"Selected dates: {تاریخ_انتخابی}")
149
 
150
  idx1 = tips["سن"].between(سنی[0], سنی[1]) # فیلتر بر اساس رنج سنی
151
  idx2 = tips["تاریخ"].isin(tاریخ_انتخابی) # فیلتر بر اساس تاریخ انتخابی
152
  filtered_data = tips[idx1 & idx2] # داده‌های فیلتر شده
153
 
154
- print(f"Filtered data: {filtered_data}") # چاپ داده‌های فیلتر شده
155
-
156
  return filtered_data
157
 
158
  @reactive.effect
 
144
  def tips_data():
145
  سنی = input.سن() # مقدار رنج سنی
146
  تاریخ_انتخابی = input.time() # تاریخ‌های انتخابی
 
 
147
 
148
  idx1 = tips["سن"].between(سنی[0], سنی[1]) # فیلتر بر اساس رنج سنی
149
  idx2 = tips["تاریخ"].isin(tاریخ_انتخابی) # فیلتر بر اساس تاریخ انتخابی
150
  filtered_data = tips[idx1 & idx2] # داده‌های فیلتر شده
151
 
 
 
152
  return filtered_data
153
 
154
  @reactive.effect