{"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":"code","source":"import pandas as pd\t\nimport numpy as np \t\nimport seaborn as sns\t\nfrom sklearn import preprocessing\t\nimport matplotlib.pyplot as plt\t\n%matplotlib inline\t\n","metadata":{"execution":{"iopub.status.busy":"2023-04-15T22:45:46.994383Z","iopub.execute_input":"2023-04-15T22:45:46.994786Z","iopub.status.idle":"2023-04-15T22:45:48.066269Z","shell.execute_reply.started":"2023-04-15T22:45:46.994716Z","shell.execute_reply":"2023-04-15T22:45:48.065600Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df=pd.read_csv('/kaggle/input/nfl-player-contact-detection/sample_submission.csv')\n","metadata":{"execution":{"iopub.status.busy":"2023-04-15T22:45:48.067679Z","iopub.execute_input":"2023-04-15T22:45:48.068076Z","iopub.status.idle":"2023-04-15T22:45:48.123633Z","shell.execute_reply.started":"2023-04-15T22:45:48.068052Z","shell.execute_reply":"2023-04-15T22:45:48.122758Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print (df)\n","metadata":{"execution":{"iopub.status.busy":"2023-04-15T22:45:48.124790Z","iopub.execute_input":"2023-04-15T22:45:48.125033Z","iopub.status.idle":"2023-04-15T22:45:48.136780Z","shell.execute_reply.started":"2023-04-15T22:45:48.125005Z","shell.execute_reply":"2023-04-15T22:45:48.135464Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df.head()\n","metadata":{"execution":{"iopub.status.busy":"2023-04-15T22:45:48.140142Z","iopub.execute_input":"2023-04-15T22:45:48.140389Z","iopub.status.idle":"2023-04-15T22:45:48.151212Z","shell.execute_reply.started":"2023-04-15T22:45:48.140366Z","shell.execute_reply":"2023-04-15T22:45:48.150468Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df.shape\n","metadata":{"execution":{"iopub.status.busy":"2023-04-15T22:45:48.152108Z","iopub.execute_input":"2023-04-15T22:45:48.153558Z","iopub.status.idle":"2023-04-15T22:45:48.159895Z","shell.execute_reply.started":"2023-04-15T22:45:48.153515Z","shell.execute_reply":"2023-04-15T22:45:48.158829Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df.dtypes\n","metadata":{"execution":{"iopub.status.busy":"2023-04-15T22:45:48.161260Z","iopub.execute_input":"2023-04-15T22:45:48.161847Z","iopub.status.idle":"2023-04-15T22:45:48.170462Z","shell.execute_reply.started":"2023-04-15T22:45:48.161811Z","shell.execute_reply":"2023-04-15T22:45:48.169616Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df.isnull().sum()\n","metadata":{"execution":{"iopub.status.busy":"2023-04-15T22:45:48.171748Z","iopub.execute_input":"2023-04-15T22:45:48.172158Z","iopub.status.idle":"2023-04-15T22:45:48.186191Z","shell.execute_reply.started":"2023-04-15T22:45:48.172127Z","shell.execute_reply":"2023-04-15T22:45:48.185106Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"c=df.corr()\nprint(c)\n","metadata":{"execution":{"iopub.status.busy":"2023-04-15T22:45:48.187732Z","iopub.execute_input":"2023-04-15T22:45:48.188259Z","iopub.status.idle":"2023-04-15T22:45:48.197784Z","shell.execute_reply.started":"2023-04-15T22:45:48.188229Z","shell.execute_reply":"2023-04-15T22:45:48.196885Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sns.heatmap(c)\n","metadata":{"execution":{"iopub.status.busy":"2023-04-15T22:45:48.199526Z","iopub.execute_input":"2023-04-15T22:45:48.199962Z","iopub.status.idle":"2023-04-15T22:45:48.415927Z","shell.execute_reply.started":"2023-04-15T22:45:48.199930Z","shell.execute_reply":"2023-04-15T22:45:48.414593Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sns.heatmap(c,annot=True)\n","metadata":{"execution":{"iopub.status.busy":"2023-04-15T22:45:48.418563Z","iopub.execute_input":"2023-04-15T22:45:48.418845Z","iopub.status.idle":"2023-04-15T22:45:48.612842Z","shell.execute_reply.started":"2023-04-15T22:45:48.418820Z","shell.execute_reply":"2023-04-15T22:45:48.611674Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sns.pairplot(df)\n","metadata":{"execution":{"iopub.status.busy":"2023-04-15T22:45:48.616289Z","iopub.execute_input":"2023-04-15T22:45:48.616568Z","iopub.status.idle":"2023-04-15T22:45:48.870073Z","shell.execute_reply.started":"2023-04-15T22:45:48.616543Z","shell.execute_reply":"2023-04-15T22:45:48.869108Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df.to_csv(\"submission.csv\",index=False)","metadata":{"execution":{"iopub.status.busy":"2023-04-15T22:45:48.873524Z","iopub.execute_input":"2023-04-15T22:45:48.875360Z","iopub.status.idle":"2023-04-15T22:45:48.963720Z","shell.execute_reply.started":"2023-04-15T22:45:48.875328Z","shell.execute_reply":"2023-04-15T22:45:48.962312Z"},"trusted":true},"execution_count":null,"outputs":[]}]}