{"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":"markdown","source":"**Read train.csv file**","metadata":{}},{"cell_type":"code","source":"import pandas as pd","metadata":{"execution":{"iopub.status.busy":"2023-10-26T16:48:10.961433Z","iopub.execute_input":"2023-10-26T16:48:10.961725Z","iopub.status.idle":"2023-10-26T16:48:10.965634Z","shell.execute_reply.started":"2023-10-26T16:48:10.961702Z","shell.execute_reply":"2023-10-26T16:48:10.964900Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df = pd.read_csv(\"/kaggle/input/understanding_cloud_organization/train.csv\")\ndf.head()","metadata":{"execution":{"iopub.status.busy":"2023-10-26T17:36:57.289047Z","iopub.execute_input":"2023-10-26T17:36:57.289782Z","iopub.status.idle":"2023-10-26T17:36:58.946083Z","shell.execute_reply.started":"2023-10-26T17:36:57.289750Z","shell.execute_reply":"2023-10-26T17:36:58.945507Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"**Read train_images file**","metadata":{}},{"cell_type":"code","source":"import os\nimport random\nfrom IPython.display import Image, display\n\n# Specify the directory path where the images are stored\nimage_directory = \"/kaggle/input/understanding_cloud_organization/train_images\"  # Change this to the actual directory\n\n# List all image files in the directory\nimage_files = [f for f in os.listdir(image_directory) if f.endswith((\".jpg\", \".png\", \".jpeg\"))]\n\n# Check if there are any image files in the directory\nif not image_files:\n    print(\"No image files found in the directory.\")\nelse:\n    # Select a random image file\n    random_image = random.choice(image_files)\n    random_image_path = os.path.join(image_directory, random_image)\n\n    # Display the random image\n    display(Image(filename=random_image_path))\n","metadata":{"execution":{"iopub.status.busy":"2023-10-26T17:47:55.644747Z","iopub.execute_input":"2023-10-26T17:47:55.645058Z","iopub.status.idle":"2023-10-26T17:47:55.684818Z","shell.execute_reply.started":"2023-10-26T17:47:55.645037Z","shell.execute_reply":"2023-10-26T17:47:55.683929Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"**The rest of the code for the next few days**\n","metadata":{}},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}