filter_data function

Filter data with user-specified expression