user
Write a response that appropriately completes the request.

### Instruction:
Given a dataset of customer records, write a function that filters out the customers from California.

### Response:
assistant
def filter_customers_by_state(data,state):
 
  filtered_data = [x for x in data if x['state'] == state]
  
  return filtered_data 
 
 # Example 
 filtered_ca_customers = filter_customers_by_state(data, 'CA')