{"cells":[{"metadata":{"_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","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":1,"outputs":[]},{"metadata":{"_cell_guid":"41a5e0be-8997-4139-ae69-503793f5fa1d","_uuid":"d09a670384de1c53cbdd26d6f637634f784829ad","collapsed":true,"trusted":true},"cell_type":"code","source":"train = pd.read_csv(\"../input/train.csv\")\ntest = pd.read_csv(\"../input/test.csv\")","execution_count":26,"outputs":[]},{"metadata":{"_cell_guid":"ef810c5a-9cfc-41fb-90cc-6fad71b297df","_uuid":"a98e4af942af77f16ac9b596a15a29f510742e49","trusted":true},"cell_type":"code","source":"train.head()","execution_count":27,"outputs":[]},{"metadata":{"_cell_guid":"853c3df6-4907-4e56-b779-433337dddc26","_uuid":"2bb22face049fb84e90b432bc27600d405fbb664","collapsed":true,"trusted":true},"cell_type":"code","source":"df3 = test[['item_id','price']].copy()","execution_count":29,"outputs":[]},{"metadata":{"_cell_guid":"7b1382dc-ce46-4ed8-81ef-a1caa1d00122","_uuid":"860cc580c103eff45b9372485bb468aadb5bd014","collapsed":true,"trusted":true},"cell_type":"code","source":"df3['deal_probability'] =  train['deal_probability'].mean()","execution_count":30,"outputs":[]},{"metadata":{"_cell_guid":"5ab478e2-fb2c-4c8e-8951-7f40f33e2e06","_uuid":"4eff3cf77cde8ed987bd435e8790d347dc3ffd0c","trusted":true},"cell_type":"code","source":"df3.head()","execution_count":31,"outputs":[]},{"metadata":{"_cell_guid":"c825dc95-d9d9-48cc-951c-e6a5c1248963","_uuid":"e8e8f950896c9c057e2bb23c40e44f14744ae573","trusted":true},"cell_type":"code","source":"df3[['item_id','deal_probability']].to_csv('simple_mean_benchmark.csv', index=False)","execution_count":32,"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}