{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.13","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":10200,"databundleVersionId":868375,"sourceType":"competition"}],"dockerImageVersionId":30715,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"Published on May 30, 2024. By Marília Prata, mpwolke","metadata":{}},{"cell_type":"code","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\n\nimport numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n\nimport matplotlib.pyplot as plt\nimport ast\n\n# Input data files are available in the read-only \"../input/\" directory\n# For example, running this (by clicking run or pressing Shift+Enter) will list all files under the input directory\n\nimport os\nfor dirname, _, filenames in os.walk('/kaggle/input'):\n    for filename in filenames:\n        print(os.path.join(dirname, filename))\n\n# You can write up to 20GB to the current directory (/kaggle/working/) that gets preserved as output when you create a version using \"Save & Run All\" \n# You can also write temporary files to /kaggle/temp/, but they won't be saved outside of the current session","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","_kg_hide-output":true,"_kg_hide-input":true,"execution":{"iopub.status.busy":"2024-05-30T22:15:59.487442Z","iopub.execute_input":"2024-05-30T22:15:59.487835Z","iopub.status.idle":"2024-05-30T22:16:00.833881Z","shell.execute_reply.started":"2024-05-30T22:15:59.487802Z","shell.execute_reply":"2024-05-30T22:16:00.832593Z"},"collapsed":true,"jupyter":{"outputs_hidden":true},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Eight Firetrucks","metadata":{}},{"cell_type":"code","source":"#By Vitali Burachonok https://www.kaggle.com/code/byrachonok/short-simple-code-for-show-quick-draw-data\n\ndf = pd.read_csv('/kaggle/input/quickdraw-doodle-recognition/train_simplified/firetruck.csv')\nexamples = [ast.literal_eval(e) for e in df['drawing'][:8].values]\n\nfig, ax = plt.subplots(1,8,figsize=(20,4))\nfor i, example in enumerate(examples[:8]):\n    for x, y in example:\n        ax[i].plot(x, y, marker='.', markersize=1, lw=3)\n        ax[i].invert_yaxis()\n        ax[i].axis('off')","metadata":{"execution":{"iopub.status.busy":"2024-05-30T22:20:59.365799Z","iopub.execute_input":"2024-05-30T22:20:59.366211Z","iopub.status.idle":"2024-05-30T22:21:01.656023Z","shell.execute_reply.started":"2024-05-30T22:20:59.36617Z","shell.execute_reply":"2024-05-30T22:21:01.65481Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Four Rhinoceros","metadata":{}},{"cell_type":"code","source":"#By Vitali Burachonok https://www.kaggle.com/code/byrachonok/short-simple-code-for-show-quick-draw-data\n\ndf = pd.read_csv('/kaggle/input/quickdraw-doodle-recognition/train_simplified/rhinoceros.csv')\nexamples = [ast.literal_eval(e) for e in df['drawing'][:4].values]\n\nfig, ax = plt.subplots(1,4,figsize=(20,4)) #Original was 1,8\nfor i, example in enumerate(examples[:4]): #Original was [:8]\n    for x, y in example:\n        ax[i].plot(x, y, marker='.', markersize=1, lw=3)\n        ax[i].invert_yaxis()\n        ax[i].axis('off')","metadata":{"execution":{"iopub.status.busy":"2024-05-30T22:22:24.506382Z","iopub.execute_input":"2024-05-30T22:22:24.507237Z","iopub.status.idle":"2024-05-30T22:22:26.079618Z","shell.execute_reply.started":"2024-05-30T22:22:24.507191Z","shell.execute_reply":"2024-05-30T22:22:26.078373Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Acknowledgements:\n\nVitali Burachonok https://www.kaggle.com/code/byrachonok/short-simple-code-for-show-quick-draw-data","metadata":{}}]}