{
  "cells": [
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "_cell_guid": "07a83ae7-859f-a501-bcf7-89f6f7db6984"
      },
      "outputs": [],
      "source": [
        "import pandas as pd\n",
        "import matplotlib.pyplot as plt\n",
        "\n",
        "%matplotlib inline"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "_cell_guid": "fbe534a0-3c39-2bb9-f0ca-ee1afd0f4558"
      },
      "outputs": [],
      "source": [
        "dict = {} # display_id, count\n",
        "df = pd.read_csv('../input/clicks_train.csv', iterator=True, chunksize=10000)\n",
        "    "
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "_cell_guid": "831ad12b-7646-b4ed-33b5-c10b35ee12eb"
      },
      "outputs": [],
      "source": [
        "adcount = {}\n",
        "for data in df:\n",
        "    for d in data.iter\n",
        "    adcount[data]"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "_cell_guid": "2287b072-c57c-e3ff-02c1-68e2ed466254"
      },
      "outputs": [],
      "source": ""
    }
  ],
  "metadata": {
    "_change_revision": 0,
    "_is_fork": false,
    "kernelspec": {
      "display_name": "Python 3",
      "language": "python",
      "name": "python3"
    },
    "language_info": {
      "codemirror_mode": {
        "name": "ipython",
        "version": 3
      },
      "file_extension": ".py",
      "mimetype": "text/x-python",
      "name": "python",
      "nbconvert_exporter": "python",
      "pygments_lexer": "ipython3",
      "version": "3.5.2"
    }
  },
  "nbformat": 4,
  "nbformat_minor": 0
}