text_plain_output_1.png image_output_1.png
import numpy as np

import pandas as pd

sales = pd.read_csv('../input/transactions.csv', parse_dates=['date'], dtype={'store_nbr': np.uint8, 'transactions': np.uint16})
items = pd.read_csv('../input/items.csv', dtype={'item_nbr': np.uint32, 'class': np.uint16, 'perishable': np.bool})
stores = pd.read_csv('../input/stores.csv')
oil = pd.read_csv('../input/oil.csv', parse_dates=['date'], dtype={'dcoilwtico': np.float16})
holidays = pd.read_csv('../input/holidays_events.csv', parse_dates=['date'])
train = pd.read_csv('../input/train.csv', nrows=6000000, parse_dates=['date'], dtype={'id': np.uint32, 'store_nbr': np.uint8, 'item_nbr': np.uint32, 'onpromotion': np.bool, 'unit_sales': np.float32})

items.groupby(['family']).size().plot(kind='bar', stacked=True, figsize=(13, 6), grid=False)