{"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":"# 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\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 read-only \"../input/\" directory\n# For example, running this (by clicking run or pressing Shift+Enter) will list all files under the input directory\n\nimport os\nfor dirname, _, filenames in os.walk('/kaggle/input'):\n    for filename in filenames:\n        print(os.path.join(dirname, filename))\n\n# You can write up to 20GB to the current directory (/kaggle/working/) that gets preserved as output when you create a version using \"Save & Run All\" \n# You can also write temporary files to /kaggle/temp/, but they won't be saved outside of the current session","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2021-12-10T12:46:31.389133Z","iopub.execute_input":"2021-12-10T12:46:31.389876Z","iopub.status.idle":"2021-12-10T12:46:31.423016Z","shell.execute_reply.started":"2021-12-10T12:46:31.389764Z","shell.execute_reply":"2021-12-10T12:46:31.422328Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import pandas as pd\n","metadata":{"execution":{"iopub.status.busy":"2021-12-10T12:47:27.305459Z","iopub.execute_input":"2021-12-10T12:47:27.305727Z","iopub.status.idle":"2021-12-10T12:47:27.310220Z","shell.execute_reply.started":"2021-12-10T12:47:27.305695Z","shell.execute_reply":"2021-12-10T12:47:27.309423Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df_players=pd.read_csv('/kaggle/input/nfl-big-data-bowl-2022/players.csv')\ndf_pff=pd.read_csv('/kaggle/input/nfl-big-data-bowl-2022/PFFScoutingData.csv')\ndf_tracking_2018=pd.read_csv('/kaggle/input/nfl-big-data-bowl-2022/tracking2018.csv')\ndf_tracking_2019=pd.read_csv('/kaggle/input/nfl-big-data-bowl-2022/tracking2019.csv')\ndf_tracking_2020=pd.read_csv('/kaggle/input/nfl-big-data-bowl-2022/tracking2020.csv')\ndf_games=pd.read_csv('/kaggle/input/nfl-big-data-bowl-2022/games.csv')\ndf_plays=pd.read_csv('/kaggle/input/nfl-big-data-bowl-2022/plays.csv')","metadata":{"execution":{"iopub.status.busy":"2021-12-10T12:51:29.772698Z","iopub.execute_input":"2021-12-10T12:51:29.773386Z","iopub.status.idle":"2021-12-10T12:53:17.002032Z","shell.execute_reply.started":"2021-12-10T12:51:29.773348Z","shell.execute_reply":"2021-12-10T12:53:17.001280Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip install autoviz # refer pure auto viz https://www.kaggle.com/hamzaghanmi/nfl-big-data-bowl-2022-autoviz-eda","metadata":{"execution":{"iopub.status.busy":"2021-12-10T12:56:44.411245Z","iopub.execute_input":"2021-12-10T12:56:44.411738Z","iopub.status.idle":"2021-12-10T12:56:55.236234Z","shell.execute_reply.started":"2021-12-10T12:56:44.411698Z","shell.execute_reply":"2021-12-10T12:56:55.235333Z"},"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip install sweetviz","metadata":{"execution":{"iopub.status.busy":"2021-12-10T12:46:53.039713Z","iopub.execute_input":"2021-12-10T12:46:53.040210Z","iopub.status.idle":"2021-12-10T12:47:03.557363Z","shell.execute_reply.started":"2021-12-10T12:46:53.040170Z","shell.execute_reply":"2021-12-10T12:47:03.556425Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# 1.Players","metadata":{}},{"cell_type":"code","source":"import sweetviz as sv\nsweet_report = sv.analyze(df_players)\nsweet_report.show_html('sweet_report.html')","metadata":{"execution":{"iopub.status.busy":"2021-12-10T12:53:20.911177Z","iopub.execute_input":"2021-12-10T12:53:20.911427Z","iopub.status.idle":"2021-12-10T12:53:23.875641Z","shell.execute_reply.started":"2021-12-10T12:53:20.911389Z","shell.execute_reply":"2021-12-10T12:53:23.874833Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sweet_report.show_notebook()\nsweet_report.show_notebook(w=1500, h=300, scale=0.8)\nsweet_report.show_html(scale=0.9)","metadata":{"execution":{"iopub.status.busy":"2021-12-10T12:54:08.417757Z","iopub.execute_input":"2021-12-10T12:54:08.418048Z","iopub.status.idle":"2021-12-10T12:54:08.515669Z","shell.execute_reply.started":"2021-12-10T12:54:08.418015Z","shell.execute_reply":"2021-12-10T12:54:08.515043Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from autoviz.AutoViz_Class import AutoViz_Class\nAV = AutoViz_Class()\nfilename = \"/kaggle/input/nfl-big-data-bowl-2022/players.csv\"\nsep = \",\"\ndft = AV.AutoViz(\n    filename,\n    sep=\",\",\n    depVar=\"\",\n    dfte=None,\n    header=0,\n    verbose=0,\n    lowess=False,\n    chart_format=\"svg\"\n)","metadata":{"execution":{"iopub.status.busy":"2021-12-10T12:58:30.417911Z","iopub.execute_input":"2021-12-10T12:58:30.418280Z","iopub.status.idle":"2021-12-10T12:58:38.634460Z","shell.execute_reply.started":"2021-12-10T12:58:30.418223Z","shell.execute_reply":"2021-12-10T12:58:38.633730Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"\n","metadata":{}},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# PFFScoutingData","metadata":{}},{"cell_type":"code","source":"#df_pff=pd.read_csv('/kaggle/input/nfl-big-data-bowl-2022/PFFScoutingData.csv')\nsweet_report = sv.analyze(df_pff)\nsweet_report.show_html('sweet_report.html')\nsweet_report.show_notebook()\nsweet_report.show_notebook(w=1500, h=300, scale=0.8)\nsweet_report.show_html(scale=0.9)","metadata":{"execution":{"iopub.status.busy":"2021-12-10T13:00:53.873974Z","iopub.execute_input":"2021-12-10T13:00:53.874775Z","iopub.status.idle":"2021-12-10T13:01:02.677827Z","shell.execute_reply.started":"2021-12-10T13:00:53.874720Z","shell.execute_reply":"2021-12-10T13:01:02.677100Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from autoviz.AutoViz_Class import AutoViz_Class\nAV = AutoViz_Class()\nfilename = \"/kaggle/input/nfl-big-data-bowl-2022/PFFScoutingData.csv\"\nsep = \",\"\ndft = AV.AutoViz(\n    filename,\n    sep=\",\",\n    depVar=\"\",\n    dfte=None,\n    header=0,\n    verbose=0,\n    lowess=False,\n    chart_format=\"svg\"\n)","metadata":{"execution":{"iopub.status.busy":"2021-12-10T13:01:26.886718Z","iopub.execute_input":"2021-12-10T13:01:26.887577Z","iopub.status.idle":"2021-12-10T13:01:35.211295Z","shell.execute_reply.started":"2021-12-10T13:01:26.887529Z","shell.execute_reply":"2021-12-10T13:01:35.210597Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# Games","metadata":{}},{"cell_type":"code","source":"#df_games=pd.read_csv('/kaggle/input/nfl-big-data-bowl-2022/games.csv')\nsweet_report = sv.analyze(df_games)\nsweet_report.show_html('sweet_report.html')\nsweet_report.show_notebook()\nsweet_report.show_notebook(w=1500, h=300, scale=0.8)\nsweet_report.show_html(scale=0.9)","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from autoviz.AutoViz_Class import AutoViz_Class\nAV = AutoViz_Class()\nfilename = \"/kaggle/input/nfl-big-data-bowl-2022/games.csv\"\nsep = \",\"\ndft = AV.AutoViz(\n    filename,\n    sep=\",\",\n    depVar=\"\",\n    dfte=None,\n    header=0,\n    verbose=0,\n    lowess=False,\n    chart_format=\"svg\"\n)","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# Plays","metadata":{}},{"cell_type":"code","source":"#df_plays=pd.read_csv('/kaggle/input/nfl-big-data-bowl-2022/plays.csv')\nsweet_report = sv.analyze(df_plays)\nsweet_report.show_html('sweet_report.html')\nsweet_report.show_notebook()\nsweet_report.show_notebook(w=1500, h=300, scale=0.8)\nsweet_report.show_html(scale=0.9)","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#df_plays=pd.read_csv('/kaggle/input/nfl-big-data-bowl-2022/plays.csv')\nfrom autoviz.AutoViz_Class import AutoViz_Class\nAV = AutoViz_Class()\nfilename = \"/kaggle/input/nfl-big-data-bowl-2022/plays.csv\"\nsep = \",\"\ndft = AV.AutoViz(\n    filename,\n    sep=\",\",\n    depVar=\"\",\n    dfte=None,\n    header=0,\n    verbose=0,\n    lowess=False,\n    chart_format=\"svg\"\n)","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# Tracking 2018","metadata":{}},{"cell_type":"code","source":"#df_tracking_2018=pd.read_csv('/kaggle/input/nfl-big-data-bowl-2022/tracking2018.csv')\nsweet_report = sv.analyze(df_tracking_2018)\nsweet_report.show_html('sweet_report.html')\nsweet_report.show_notebook()\nsweet_report.show_notebook(w=1500, h=300, scale=0.8)\nsweet_report.show_html(scale=0.9)","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from autoviz.AutoViz_Class import AutoViz_Class\nAV = AutoViz_Class()\nfilename = \"/kaggle/input/nfl-big-data-bowl-2022/tracking2018.csv\"\nsep = \",\"\ndft = AV.AutoViz(\n    filename,\n    sep=\",\",\n    depVar=\"\",\n    dfte=None,\n    header=0,\n    verbose=0,\n    lowess=False,\n    chart_format=\"svg\"\n)","metadata":{"execution":{"iopub.status.busy":"2021-12-10T13:55:28.825644Z","iopub.execute_input":"2021-12-10T13:55:28.826138Z","iopub.status.idle":"2021-12-10T13:56:42.320235Z","shell.execute_reply.started":"2021-12-10T13:55:28.826100Z","shell.execute_reply":"2021-12-10T13:56:42.319564Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# Tracking 2019","metadata":{}},{"cell_type":"code","source":"#df_tracking_2019=pd.read_csv('/kaggle/input/nfl-big-data-bowl-2022/tracking2019.csv')\nsweet_report = sv.analyze(df_tracking_2019)\nsweet_report.show_html('sweet_report.html')\nsweet_report.show_notebook()\nsweet_report.show_notebook(w=1500, h=300, scale=0.8)\nsweet_report.show_html(scale=0.9)","metadata":{"execution":{"iopub.status.busy":"2021-12-10T13:40:31.410096Z","iopub.execute_input":"2021-12-10T13:40:31.410613Z","iopub.status.idle":"2021-12-10T13:55:28.823952Z","shell.execute_reply.started":"2021-12-10T13:40:31.410571Z","shell.execute_reply":"2021-12-10T13:55:28.823167Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from autoviz.AutoViz_Class import AutoViz_Class\nAV = AutoViz_Class()\nfilename = \"/kaggle/input/nfl-big-data-bowl-2022/tracking2019.csv\"\nsep = \",\"\ndft = AV.AutoViz(\n    filename,\n    sep=\",\",\n    depVar=\"\",\n    dfte=None,\n    header=0,\n    verbose=0,\n    lowess=False,\n    chart_format=\"svg\"\n)","metadata":{"execution":{"iopub.status.busy":"2021-12-10T13:24:25.871893Z","iopub.execute_input":"2021-12-10T13:24:25.872929Z","iopub.status.idle":"2021-12-10T13:25:33.319488Z","shell.execute_reply.started":"2021-12-10T13:24:25.872886Z","shell.execute_reply":"2021-12-10T13:25:33.318843Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# Tracking 2020","metadata":{}},{"cell_type":"code","source":"#df_tracking_2020=pd.read_csv('/kaggle/input/nfl-big-data-bowl-2022/tracking2020.csv')\nsweet_report = sv.analyze(df_tracking_2020)\nsweet_report.show_html('sweet_report.html')\nsweet_report.show_notebook()\nsweet_report.show_notebook(w=1500, h=300, scale=0.8)\nsweet_report.show_html(scale=0.9)","metadata":{"execution":{"iopub.status.busy":"2021-12-10T13:08:57.001707Z","iopub.execute_input":"2021-12-10T13:08:57.002478Z","iopub.status.idle":"2021-12-10T13:23:27.054242Z","shell.execute_reply.started":"2021-12-10T13:08:57.002440Z","shell.execute_reply":"2021-12-10T13:23:27.053328Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from autoviz.AutoViz_Class import AutoViz_Class\nAV = AutoViz_Class()\nfilename = \"/kaggle/input/nfl-big-data-bowl-2022/tracking2020.csv\"\nsep = \",\"\ndft = AV.AutoViz(\n    filename,\n    sep=\",\",\n    depVar=\"\",\n    dfte=None,\n    header=0,\n    verbose=0,\n    lowess=False,\n    chart_format=\"svg\"\n)","metadata":{"execution":{"iopub.status.busy":"2021-12-10T13:23:27.055912Z","iopub.execute_input":"2021-12-10T13:23:27.056243Z","iopub.status.idle":"2021-12-10T13:24:25.870532Z","shell.execute_reply.started":"2021-12-10T13:23:27.056206Z","shell.execute_reply":"2021-12-10T13:24:25.869903Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}