{"cells":[{"metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true},"cell_type":"code","source":"import numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n\nimport os\nprint(os.listdir(\"../input\"))\n","execution_count":null,"outputs":[]},{"metadata":{"_cell_guid":"79c7e3d0-c299-4dcb-8224-4455121ee9b0","_uuid":"d629ff2d2480ee46fbb7e2d37f6b5fab8052498a","trusted":true},"cell_type":"code","source":"train_df=pd.read_csv(\"../input/train.csv\")","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"86cb4e6eafc6c246a8c494192e93c29a191bd936"},"cell_type":"code","source":"train_df.head()","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"beda3be615a9085f6ca2250051031c9c811a332f"},"cell_type":"code","source":"train_df.info()","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"41872ecb43cb23dbf9108148a1ae674f7f7379bb"},"cell_type":"code","source":"from PIL import Image\nimport matplotlib.pyplot as plt\n\nim = Image.open(\"../input/train/0000e88ab.jpg\")\n","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"44dec4d263a2559662efaa78cc29504b92342931"},"cell_type":"code","source":"plt.imshow(im)","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"3c139ada66e5ec560b68dd939b8b7b940b15188f"},"cell_type":"code","source":"im.size","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"2fc9debf806ef64e43bd31acf982cee29f841f78"},"cell_type":"code","source":"whales = train_df.groupby('Id')['Image'].nunique()\nwhales.sort_values(ascending=False)\n","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"5fd62473b39fd0238f592c88dfd9b30e7ed2230f"},"cell_type":"code","source":"whales.sort_values(ascending=False)[1:100].hist()","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"162e139ba681d39aedcd35149b8d0645c1e1ad22"},"cell_type":"code","source":"test_df=pd.read_csv(\"../input/sample_submission.csv\")\ntest_df.head()","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"60862cb9c458d18bea9e05455ef1da3c3bea7909"},"cell_type":"code","source":"im_test = Image.open(\"../input/test/001a4d292.jpg\")\nplt.imshow(im_test)","execution_count":null,"outputs":[]}],"metadata":{"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"name":"python","version":"3.6.6","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"}},"nbformat":4,"nbformat_minor":1}