text_plain_output_1.png
import numpy as np

import pandas as pd

data = pd.read_csv('../input/online_shoppers_intention.csv')
data.shape

data.describe().T

data.columns = ['admin_pages', 'admin_duration', 'info_pages', 'info_duration', 'product_pages', 'prod_duration', 'avg_bounce_rate', 'avg_exit_rate', 'avg_page_value', 'spl_day', 'month', 'os', 'browser', 'region', 'traffic_type', 'visitor_type', 'weekend', 'revenue']

data1 = data.copy()

data1.weekend = np.where(data.weekend == True, 1, 0)
data1.revenue = np.where(data.revenue == True, 1, 0)

data.month.unique()