{"cells":[{"cell_type":"markdown","metadata":{"_cell_guid":"81a4c1c0-a8d1-82c3-4d8f-d37474e16a68"},"source":"Test for kernel"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"d9fc7c17-0a6f-2b20-6eb5-3903f574fc7d"},"outputs":[],"source":"# This Python 3 environment comes with many helpful analytics libraries installed\n# It is defined by the kaggle/python docker image: https://github.com/kaggle/docker-python\n# For example, here's several helpful packages to load in \n\nimport numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n\n# Input data files are available in the \"../input/\" directory.\n# For example, running this (by clicking run or pressing Shift+Enter) will list the files in the input directory\n\nfrom subprocess import check_output\nprint(check_output([\"ls\", \"../input\"]).decode(\"utf8\"))\n\n# Any results you write to the current directory are saved as output."},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"c0c2e562-ddee-eb46-833b-5136a54b1cc6"},"outputs":[],"source":"df = pd.read_csv(\"../input/clicks_train.csv\")"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"f52bdd3c-ebd9-8dd3-ad78-e37dfb131ff8"},"outputs":[],"source":"df.head()"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"bcb61121-5934-41d6-90dd-0e5257f13081"},"outputs":[],"source":"import matplotlib.pyplot as plt\n%matplotlib inline\n%config InlineBackend.figure_format = 'png'\n"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"5fd6728e-46ec-16e1-0782-69ff8c3b66d1"},"outputs":[],"source":"plt.hist(df.clicked)"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"be550865-dc5a-de88-8b74-eaff4e96e649"},"outputs":[],"source":"np.sum(df.clicked) / df.size"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"fa6fc76c-da8c-8976-40c2-9367ecacb9ad"},"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}