{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"If a model performs worse than this, there must be something wrong in your code. This code has no other use to it.","metadata":{}},{"cell_type":"code","source":"import numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2022-07-29T07:28:01.702719Z","iopub.execute_input":"2022-07-29T07:28:01.703147Z","iopub.status.idle":"2022-07-29T07:28:01.709574Z","shell.execute_reply.started":"2022-07-29T07:28:01.703112Z","shell.execute_reply":"2022-07-29T07:28:01.708043Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train = pd.read_csv('../input/spaceship-titanic/train.csv')\ntest = pd.read_csv('../input/spaceship-titanic/test.csv')\ntrain","metadata":{"execution":{"iopub.status.busy":"2022-07-29T07:28:55.316298Z","iopub.execute_input":"2022-07-29T07:28:55.316744Z","iopub.status.idle":"2022-07-29T07:28:55.404582Z","shell.execute_reply.started":"2022-07-29T07:28:55.316705Z","shell.execute_reply":"2022-07-29T07:28:55.403039Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"random_submission = pd.Series(np.random.randint(0, 2, size=(test.shape[0],)), index=test.PassengerId, name='Transported').astype(bool)\nrandom_submission","metadata":{"execution":{"iopub.status.busy":"2022-07-29T07:32:58.665158Z","iopub.execute_input":"2022-07-29T07:32:58.665588Z","iopub.status.idle":"2022-07-29T07:32:58.679900Z","shell.execute_reply.started":"2022-07-29T07:32:58.665547Z","shell.execute_reply":"2022-07-29T07:32:58.678758Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"random_submission.to_csv('submission.csv')","metadata":{"execution":{"iopub.status.busy":"2022-07-29T07:33:12.162776Z","iopub.execute_input":"2022-07-29T07:33:12.163212Z","iopub.status.idle":"2022-07-29T07:33:12.177933Z","shell.execute_reply.started":"2022-07-29T07:33:12.163178Z","shell.execute_reply":"2022-07-29T07:33:12.175782Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"pd.read_csv('./submission.csv')","metadata":{"execution":{"iopub.status.busy":"2022-07-29T07:33:34.228742Z","iopub.execute_input":"2022-07-29T07:33:34.229159Z","iopub.status.idle":"2022-07-29T07:33:34.247715Z","shell.execute_reply.started":"2022-07-29T07:33:34.229128Z","shell.execute_reply":"2022-07-29T07:33:34.246936Z"},"trusted":true},"execution_count":null,"outputs":[]}]}