给定一个客户记录数据集，编写一个函数来过滤掉来自加利福尼亚的客户。
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')