text_plain_output_1.png
import pandas as pd

transactions = pd.read_csv('../input/transactions.csv')

transactions.shape[0]

transactions.shape[1]

transactions.index

transactions.index.values

transactions.columns.values

transactions.count()

transactions.sum(skipna=True, numeric_only=True)

transactions.rename(columns={'ProductID': 'PID', 'UserID': 'UID'})

transactions[pd.unique(['UserID'] + transactions.columns.values.tolist()).tolist()]