{"cells":[{"metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true},"cell_type":"code","source":"import pandas as pd \nimport os\nprint(os.listdir(\"../input\"))","execution_count":null,"outputs":[]},{"metadata":{"_cell_guid":"79c7e3d0-c299-4dcb-8224-4455121ee9b0","_uuid":"d629ff2d2480ee46fbb7e2d37f6b5fab8052498a","trusted":true},"cell_type":"code","source":"df = pd.read_csv('../input/train_human_labels.csv')\ndf.head()","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"85a24cae790474649e11577563054d58c95aacda"},"cell_type":"code","source":"l = df.LabelName.value_counts().index.tolist()[:4]","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"6b710cdcb04d1d57a27cebe2093041ea9f32bb12"},"cell_type":"code","source":"an = ' '.join(l)","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"9d6b7bf7f180f88d510caea372951ffc17ac52a1"},"cell_type":"code","source":"print(l)","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"1a7138071ed2376b77cc2c44f3d88a1bd54bde52"},"cell_type":"code","source":"print(an)","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"bd4cd5dc8d646aa26a74ba1dc19ef2528cff6dc1"},"cell_type":"code","source":"df = pd.read_csv('../input/stage_1_sample_submission.csv', usecols=[0])","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"386a4f4de46026a940f30b3f586beda8ac758113"},"cell_type":"code","source":"ans = []\nfor i in range(len(df)):\n    ans.append(an)","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"2d024e9b802339f036db5a9fa95bf753df0fbf06"},"cell_type":"code","source":"df['labels'] = ans\ndf.head()","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"e9b049a0b77abf5a291ef04b0e74c16c1d8d7d2f"},"cell_type":"code","source":"df.to_csv('sub.csv', index=False)","execution_count":null,"outputs":[]}],"metadata":{"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"name":"python","version":"3.6.6","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"}},"nbformat":4,"nbformat_minor":1}