{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import numpy as np \nimport pandas as pd \nimport matplotlib.pyplot as plt\nfrom matplotlib.pyplot import figure","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2022-02-07T14:05:50.693527Z","iopub.execute_input":"2022-02-07T14:05:50.693963Z","iopub.status.idle":"2022-02-07T14:05:50.698594Z","shell.execute_reply.started":"2022-02-07T14:05:50.693907Z","shell.execute_reply":"2022-02-07T14:05:50.697667Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# **Show two pictures of each type to compare the types and know the common**","metadata":{}},{"cell_type":"code","source":"data=pd.read_csv('../input/happy-whale-and-dolphin/train.csv')\ndata","metadata":{"execution":{"iopub.status.busy":"2022-02-07T14:06:49.298531Z","iopub.execute_input":"2022-02-07T14:06:49.298859Z","iopub.status.idle":"2022-02-07T14:06:49.386414Z","shell.execute_reply.started":"2022-02-07T14:06:49.298826Z","shell.execute_reply":"2022-02-07T14:06:49.385500Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"unique=data['species'].unique()","metadata":{"execution":{"iopub.status.busy":"2022-02-07T14:13:26.166431Z","iopub.execute_input":"2022-02-07T14:13:26.167355Z","iopub.status.idle":"2022-02-07T14:13:26.177644Z","shell.execute_reply.started":"2022-02-07T14:13:26.167292Z","shell.execute_reply":"2022-02-07T14:13:26.176299Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"for d in unique :\n    a=data[data['species']==f'{d}'][0:1]['image'].values[0]\n    b=data[data['species']==f'{d}'][1:2]['image'].values[0]\n    fig = plt.figure(figsize=(8, 6))\n    ax = fig.add_subplot()\n    plt.imshow(plt.imread(f'../input/happy-whale-and-dolphin/train_images/{a}'))\n    ax.set_title(f'{d}')\n    \n    fig = plt.figure(figsize=(8, 6))\n    ax = fig.add_subplot()\n    plt.imshow(plt.imread(f'../input/happy-whale-and-dolphin/train_images/{b}'))\n    ax.set_title(f'{d}')\n    \n    ","metadata":{"execution":{"iopub.status.busy":"2022-02-07T14:44:20.323942Z","iopub.execute_input":"2022-02-07T14:44:20.324287Z","iopub.status.idle":"2022-02-07T14:45:13.801733Z","shell.execute_reply.started":"2022-02-07T14:44:20.324254Z","shell.execute_reply":"2022-02-07T14:45:13.800654Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}