text_html_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

transaction = pd.read_csv('../input/h-and-m-personalized-fashion-recommendations/transactions_train.csv')
customer = pd.read_csv('../input/h-and-m-personalized-fashion-recommendations/customers.csv')
articles = pd.read_csv('../input/h-and-m-personalized-fashion-recommendations/articles.csv')

transaction.loc[transaction['customer_id'] == '00000dbacae5abe5e23885899a1fa44253a17956c6d1c3d25f88aa139fdfc657'].shape

customer_detail_by_trans = pd.merge(transaction, customer, on='customer_id')

customer_detail_by_trans.loc[customer_detail_by_trans['customer_id'] == '00000dbacae5abe5e23885899a1fa44253a17956c6d1c3d25f88aa139fdfc657'].shape