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

data = pd.read_csv('../input/creditcard.csv')

fraud_ratio = float(data['Class'][data['Class'] == 1].shape[0]) / data.shape[0]

X = data.iloc[:, :-1]
Y = data['Class']

(Y.shape, X.shape)