i won't be able to refactor your code, but you should remove the callback and instead let marimo handle updating the affected cells based on changing ui elements
Hi @Myles Scolnick Thank you for the suggestion. I have now refactored the code as suggested by you but now I am getting "The variable 'filtered_data' was defined by another cell:"
when I do the filteration based on the date range e.g. filtered_data = filtered_data[ (filtered_data["request_date"] >= end_date_str) & (filtered_data["request_date"] <= start_date_str) ]