{"cells":[{"metadata":{"_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5"},"cell_type":"markdown","source":"# SIMPLE DATA EXPLORATION \n[A Santosh Kumar](https://github.com/santoshk17) - May 2018"},{"metadata":{"collapsed":true,"trusted":true,"_uuid":"41b9661214946957b9dba0b738d42c4fcd994d92"},"cell_type":"code","source":"import os\nimport pandas as pd\n ","execution_count":54,"outputs":[]},{"metadata":{"_cell_guid":"79c7e3d0-c299-4dcb-8224-4455121ee9b0","_uuid":"d629ff2d2480ee46fbb7e2d37f6b5fab8052498a","collapsed":true,"trusted":true},"cell_type":"code","source":"path = '../input/train_1/'\ntrain_events = os.listdir(path)","execution_count":55,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"a2d40deb619baa922ae2900b775b77f4b9b40923"},"cell_type":"code","source":"print('# File sizes')\nfor f in os.listdir('../input'):\n    if 'zip' not in f:\n        print(f.ljust(30) + str(round(os.path.getsize('../input/' + f) / 1000000, 2)) + 'MB')","execution_count":56,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"9f4ea43dbd572fea80a8e762024cc6f8daebb8ed"},"cell_type":"code","source":"print('# File sizes')\ncount = 0\nfor f in os.listdir('../input/train_1/'):\n    if 'zip' not in f:\n        if (count < 20):\n           print(f.ljust(30) + str(round(os.path.getsize('../input/train_1/' + f) / 1000000, 2)) + 'MB')\n           count = count + 1","execution_count":57,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"327e08813dded567b1f26ef69501d7191aa0a971"},"cell_type":"code","source":"len(train_events)","execution_count":58,"outputs":[]},{"metadata":{"_uuid":"31ed9b0143ca63483dfa145123105b6b49e530a5"},"cell_type":"markdown","source":"\n\nEach event has four associated files\n1. hits\n2. cells\n3. particles\n4. truth\n\nThe files of a particular event has prefix, e.g. event000000010, i.e always **event **followed by 9 digits. "},{"metadata":{"trusted":true,"_uuid":"eb07528a5f627c38aedbb1cce7a5f41c9da8e28b"},"cell_type":"code","source":"hits_df = pd.read_csv(path+'event000002560-hits.csv')\ncells_df = pd.read_csv(path+'event000002560-cells.csv')\nparticles_df = pd.read_csv(path+'event000002560-particles.csv')\ntruth_df = pd.read_csv(path+'event000002560-truth.csv')","execution_count":63,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"76ff7fa75e2a790b644b23c3553053df75ab9b86"},"cell_type":"code","source":"hits_df.head(5)","execution_count":64,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"2dbaef9ca886710688d485f02344520f114d8374"},"cell_type":"code","source":"cells_df.head(5)","execution_count":65,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"c094f575fbc821daa51a56e952ebc0ff143f3c68"},"cell_type":"code","source":"truth_df.head(5)","execution_count":66,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"662681d8efd743b19e6c6853403c0b2e22245502"},"cell_type":"code","source":"particles_df.head(5)","execution_count":67,"outputs":[]},{"metadata":{"collapsed":true,"trusted":true,"_uuid":"3f240615b7c31d23ca0fc97541803998a3b8c735"},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"collapsed":true,"trusted":true,"_uuid":"b28997a08817b8d88009ea2b6512b08258409b49"},"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.5","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"}},"nbformat":4,"nbformat_minor":1}