{"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 numpy as np # linear algebra\nimport matplotlib.pyplot as plt\n%matplotlib inline\nimport seaborn as sns\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\nimport os\nfor dirname, _, filenames in os.walk('/kaggle/input'):\n    for filename in filenames:\n        print(os.path.join(dirname, filename))","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2021-09-23T19:56:21.644334Z","iopub.execute_input":"2021-09-23T19:56:21.645088Z","iopub.status.idle":"2021-09-23T19:56:21.658138Z","shell.execute_reply.started":"2021-09-23T19:56:21.645040Z","shell.execute_reply":"2021-09-23T19:56:21.657315Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"players = pd.read_csv('/kaggle/input/nfl-big-data-bowl-2022/players.csv')\ngames = pd.read_csv('/kaggle/input/nfl-big-data-bowl-2022/games.csv')\nplays = pd.read_csv('/kaggle/input/nfl-big-data-bowl-2022/plays.csv')\nPFFScoutingData = pd.read_csv('/kaggle/input/nfl-big-data-bowl-2022/PFFScoutingData.csv')\ntracking2019 = pd.read_csv('/kaggle/input/nfl-big-data-bowl-2022/tracking2019.csv')\ntracking2018 = pd.read_csv('/kaggle/input/nfl-big-data-bowl-2022/tracking2018.csv')\ntracking2020 = pd.read_csv('/kaggle/input/nfl-big-data-bowl-2022/tracking2020.csv')","metadata":{"execution":{"iopub.status.busy":"2021-09-23T19:41:59.178630Z","iopub.execute_input":"2021-09-23T19:41:59.179250Z","iopub.status.idle":"2021-09-23T19:43:35.938268Z","shell.execute_reply.started":"2021-09-23T19:41:59.179208Z","shell.execute_reply":"2021-09-23T19:43:35.937140Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"width:700px; margin:0 auto;\">\n<img src=\"https://raw.githubusercontent.com/AutoViML/AutoViz/master/logo.png\" width=\"800px\"/>\n</div>","metadata":{}},{"cell_type":"markdown","source":"#### AutoViz is a one-click visualization engine: It creates powerful charts that anyone from a beginner to an expert can use.\n#### It Automatically Visualize any dataset, any size with a single line of code.\n\n#### AutoViz performs automatic visualization of any dataset with one line. Give any input file (CSV, txt or json) and AutoViz will visualize it.","metadata":{}},{"cell_type":"markdown","source":"### Here the [link](https://github.com/AutoViML/AutoViz) to Autoviz github implementation","metadata":{}},{"cell_type":"markdown","source":"# Let's install Autoviz","metadata":{}},{"cell_type":"code","source":"!pip install autoviz\n!pip install xlrd","metadata":{"execution":{"iopub.status.busy":"2021-09-23T19:44:08.216854Z","iopub.execute_input":"2021-09-23T19:44:08.217135Z","iopub.status.idle":"2021-09-23T19:44:26.582124Z","shell.execute_reply.started":"2021-09-23T19:44:08.217106Z","shell.execute_reply":"2021-09-23T19:44:26.581124Z"},"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# Usage","metadata":{}},{"cell_type":"code","source":"from autoviz.AutoViz_Class import AutoViz_Class\nAV = AutoViz_Class()","metadata":{"execution":{"iopub.status.busy":"2021-09-23T19:44:54.567259Z","iopub.execute_input":"2021-09-23T19:44:54.567593Z","iopub.status.idle":"2021-09-23T19:44:55.839666Z","shell.execute_reply.started":"2021-09-23T19:44:54.567540Z","shell.execute_reply":"2021-09-23T19:44:55.838920Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# 1.Players","metadata":{}},{"cell_type":"code","source":"players","metadata":{"execution":{"iopub.status.busy":"2021-09-23T19:46:22.822114Z","iopub.execute_input":"2021-09-23T19:46:22.822808Z","iopub.status.idle":"2021-09-23T19:46:22.840875Z","shell.execute_reply.started":"2021-09-23T19:46:22.822761Z","shell.execute_reply":"2021-09-23T19:46:22.839977Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"filename = \"/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-09-23T19:45:58.963231Z","iopub.execute_input":"2021-09-23T19:45:58.964251Z","iopub.status.idle":"2021-09-23T19:46:00.679295Z","shell.execute_reply.started":"2021-09-23T19:45:58.964204Z","shell.execute_reply":"2021-09-23T19:46:00.678495Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig, ax = plt.subplots(figsize=(16, 6))\nsns.histplot(players['Position'],color=\"blue\",ax=ax)","metadata":{"execution":{"iopub.status.busy":"2021-09-23T19:58:04.667774Z","iopub.execute_input":"2021-09-23T19:58:04.668058Z","iopub.status.idle":"2021-09-23T19:58:05.109229Z","shell.execute_reply.started":"2021-09-23T19:58:04.668029Z","shell.execute_reply":"2021-09-23T19:58:05.108369Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"games","metadata":{"execution":{"iopub.status.busy":"2021-09-23T20:03:58.656947Z","iopub.execute_input":"2021-09-23T20:03:58.657259Z","iopub.status.idle":"2021-09-23T20:03:58.673461Z","shell.execute_reply.started":"2021-09-23T20:03:58.657227Z","shell.execute_reply":"2021-09-23T20:03:58.672648Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# 2.Games","metadata":{}},{"cell_type":"code","source":"games","metadata":{"execution":{"iopub.status.busy":"2021-09-23T20:19:46.367870Z","iopub.execute_input":"2021-09-23T20:19:46.368432Z","iopub.status.idle":"2021-09-23T20:19:46.383470Z","shell.execute_reply.started":"2021-09-23T20:19:46.368392Z","shell.execute_reply":"2021-09-23T20:19:46.382903Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"filename = \"/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":{"execution":{"iopub.status.busy":"2021-09-23T20:00:56.250259Z","iopub.execute_input":"2021-09-23T20:00:56.251134Z","iopub.status.idle":"2021-09-23T20:00:57.956290Z","shell.execute_reply.started":"2021-09-23T20:00:56.251093Z","shell.execute_reply":"2021-09-23T20:00:57.955737Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig, ax = plt.subplots(figsize=(16, 6))\nsns.histplot(games['homeTeamAbbr'],color=\"blue\",ax=ax)","metadata":{"execution":{"iopub.status.busy":"2021-09-23T20:03:07.366213Z","iopub.execute_input":"2021-09-23T20:03:07.366468Z","iopub.status.idle":"2021-09-23T20:03:07.874363Z","shell.execute_reply.started":"2021-09-23T20:03:07.366441Z","shell.execute_reply":"2021-09-23T20:03:07.873708Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig, ax = plt.subplots(figsize=(16, 6))\nsns.histplot(games['visitorTeamAbbr'],color=\"blue\",ax=ax)","metadata":{"execution":{"iopub.status.busy":"2021-09-23T20:03:38.236841Z","iopub.execute_input":"2021-09-23T20:03:38.237106Z","iopub.status.idle":"2021-09-23T20:03:38.745425Z","shell.execute_reply.started":"2021-09-23T20:03:38.237079Z","shell.execute_reply":"2021-09-23T20:03:38.744866Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# 3.Plays","metadata":{}},{"cell_type":"code","source":"plays","metadata":{"execution":{"iopub.status.busy":"2021-09-23T20:04:39.618597Z","iopub.execute_input":"2021-09-23T20:04:39.618913Z","iopub.status.idle":"2021-09-23T20:04:39.659053Z","shell.execute_reply.started":"2021-09-23T20:04:39.618877Z","shell.execute_reply":"2021-09-23T20:04:39.658530Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"filename = \"/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":{"execution":{"iopub.status.busy":"2021-09-23T20:05:18.301074Z","iopub.execute_input":"2021-09-23T20:05:18.301938Z","iopub.status.idle":"2021-09-23T20:05:33.585897Z","shell.execute_reply.started":"2021-09-23T20:05:18.301899Z","shell.execute_reply":"2021-09-23T20:05:33.585097Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# 4.PFFScoutingData","metadata":{}},{"cell_type":"code","source":"PFFScoutingData","metadata":{"execution":{"iopub.status.busy":"2021-09-23T20:06:00.580423Z","iopub.execute_input":"2021-09-23T20:06:00.580950Z","iopub.status.idle":"2021-09-23T20:06:00.608334Z","shell.execute_reply.started":"2021-09-23T20:06:00.580912Z","shell.execute_reply":"2021-09-23T20:06:00.607479Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"filename = \"/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-09-23T20:07:22.828817Z","iopub.execute_input":"2021-09-23T20:07:22.829664Z","iopub.status.idle":"2021-09-23T20:07:33.704515Z","shell.execute_reply.started":"2021-09-23T20:07:22.829626Z","shell.execute_reply":"2021-09-23T20:07:33.703561Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# 5.tracking2018","metadata":{}},{"cell_type":"code","source":"tracking2018","metadata":{"execution":{"iopub.status.busy":"2021-09-23T20:07:56.028786Z","iopub.execute_input":"2021-09-23T20:07:56.029110Z","iopub.status.idle":"2021-09-23T20:07:56.061097Z","shell.execute_reply.started":"2021-09-23T20:07:56.029079Z","shell.execute_reply":"2021-09-23T20:07:56.060199Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"filename = \"/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    max_rows_analyzed=150000\n)","metadata":{"execution":{"iopub.status.busy":"2021-09-23T20:10:33.595039Z","iopub.execute_input":"2021-09-23T20:10:33.595378Z","iopub.status.idle":"2021-09-23T20:11:53.435642Z","shell.execute_reply.started":"2021-09-23T20:10:33.595341Z","shell.execute_reply":"2021-09-23T20:11:53.434830Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"## I hope that you find this kernel usefull🏄","metadata":{}}]}