{"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 os \n\nPROJECT_DIR = \"../input/happy-whale-and-dolphin/\"\nTRAIN_PATH = \"../input/happy-whale-and-dolphin/train.csv\"\nTRAIN_IMAGE_DIR = \"../input/happy-whale-and-dolphin/train_images/\"\nTEST_IMAGE_DIR = \"../input/happy-whale-and-dolphin/test_images/\"\n\nSAMPLE_SUBMISSION_PATH = \"../input/happy-whale-and-dolphin/sample_submission.csv\"\nSUBMISSION_PATH = \"submission.csv\"\n\nID = \"image\"\nTARGET1 = \"species\"\nTARGET2 = \"individual_id\"\nIMAGE_PATH_COL = \"image_path\"","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2022-02-13T06:15:13.851430Z","iopub.execute_input":"2022-02-13T06:15:13.852155Z","iopub.status.idle":"2022-02-13T06:15:13.857025Z","shell.execute_reply.started":"2022-02-13T06:15:13.852108Z","shell.execute_reply":"2022-02-13T06:15:13.856055Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train = pd.read_csv(TRAIN_PATH)\ntrain[IMAGE_PATH_COL] = train[ID].apply(lambda image_path : os.path.join(PROJECT_DIR,image_path))\ntrain.head()","metadata":{"execution":{"iopub.status.busy":"2022-02-13T06:15:13.907776Z","iopub.execute_input":"2022-02-13T06:15:13.908057Z","iopub.status.idle":"2022-02-13T06:15:14.090559Z","shell.execute_reply.started":"2022-02-13T06:15:13.908025Z","shell.execute_reply":"2022-02-13T06:15:14.089936Z"},"trusted":true},"execution_count":null,"outputs":[]}]}