แสดงชื่อลูกค้าที่ใช้วิธีการชำระเงินด้วยบัตรเครดิตและมียอดสั่งซื้อมากกว่า 2 รายการ
Show the names of customers who use Credit Card payment method and have more than 2 orders.
df1 = pd.DataFrame(columns=['customer_name', 'customer_id', 'payment_method_code']); df2 = pd.DataFrame(columns=['customer_id'])
df1[df1['customer_id'].isin(df2['customer_id']) & (df1['payment_method_code'] == 'Credit Card')]['customer_name'].value_counts()[df1[df1['customer_id'].isin(df2['customer_id']) & (df1['payment_method_code'] == 'Credit Card')]['customer_name'].value_counts() > 2].index