{"cells":[{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"3ff8730b-8672-93ed-2cb9-6744e48f1bd3"},"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)\nfrom matplotlib import pyplot as plt\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.\n\ntestImage = plt.imread('../input/1000_left.jpeg')\nplt.imshow(testImage);\nplt.axis('off')\ngreenImage = testImage[:,:,2];\nplt.figure();\nplt.imshow(greenImage);\nplt.axis('off')\nprint(testImage.shape)"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"13edd158-e42d-678c-b6bd-42d20824b35d"},"outputs":[],"source":"import pandas as pd\nlabels = pd.read_csv(\"../input/trainLabels.csv\")\nlabels[\"number\"]= [i.split(\"_\")[0] for i in  labels[\"image\"]]\nlabels[\"oeil\"]= [i.split(\"_\")[1] for i in  labels[\"image\"]]"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"ad0bbed4-d25c-0c43-c32d-321db6337f2e"},"outputs":[],"source":"labels.groupby([\"level\",\"oeil\"]).count()"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"e4346596-701d-aec0-25fc-277da85b508f"},"outputs":[],"source":""},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"78fd5bdd-eaf6-414a-6798-b573d398ecc0"},"outputs":[],"source":""},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"e72bdf31-d3e1-2200-f8fd-c6f01c86971e"},"outputs":[],"source":""},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"bc7393ac-e936-0a75-4bf2-32f63d6310b1"},"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.6.0"}},"nbformat":4,"nbformat_minor":0}