{"cells":[{"metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true},"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 in \n\nimport numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n\n# Input data files are available in the \"../input/\" directory.\n# For example, running this (by clicking run or pressing Shift+Enter) will list the files in the input directory\n\nimport os\nprint(os.listdir(\"../input\"))\n\n# Any results you write to the current directory are saved as output.","execution_count":null,"outputs":[]},{"metadata":{"_cell_guid":"79c7e3d0-c299-4dcb-8224-4455121ee9b0","_uuid":"d629ff2d2480ee46fbb7e2d37f6b5fab8052498a","trusted":true},"cell_type":"code","source":"train = pd.read_csv(\"../input/train.csv\")\nprint(train.head())","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"f5c77bfaaf7e3f1e550ef94fc76a0d9d0223011d"},"cell_type":"code","source":"labels = train.label.unique()\nfor label in labels:\n    print(label)","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"879246400525fa69cd8f827337429034770c80be"},"cell_type":"code","source":"req_dataset  = train[train[\"label\"].isin([\"Fireworks\",\"Gunshot_or_gunfire\", \"Shatter\" ])]\nreq_dataset.head(10)","execution_count":null,"outputs":[]},{"metadata":{"_uuid":"3c7448955ec161368bfd57e262170a742c4442e9"},"cell_type":"markdown","source":"Manually verified labels"},{"metadata":{"trusted":true,"_uuid":"680a5fa187fc8c9b73ec5da96e252b1f65c364ae"},"cell_type":"code","source":"manually_verified_labels =  req_dataset[req_dataset.manually_verified == 1]\nmanually_verified_labels.shape","execution_count":null,"outputs":[]},{"metadata":{"_uuid":"3164c43f64f935141ed8b8dd7ee67dab8db1430a"},"cell_type":"markdown","source":"Number of labels to be verified "},{"metadata":{"trusted":true,"_uuid":"27211e205a9cc07a7e00f5323cbda9c6d7bcb42d"},"cell_type":"code","source":"not_verified_labels =  req_dataset[req_dataset.manually_verified == 0]\nnot_verified_labels.shape","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"collapsed":true,"_uuid":"5f98bf5d99415bebf56eb55c61c3e44587c91020"},"cell_type":"code","source":"not_verified_labels.to_csv(\"notverified.csv\")","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"d8189d194b13132aa4ec1be025ffb10d40d45ba2","collapsed":true},"cell_type":"code","source":"","execution_count":null,"outputs":[]}],"metadata":{"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"name":"python","version":"3.6.4","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"}},"nbformat":4,"nbformat_minor":1}