{"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":"<a href=\"https://colab.research.google.com/github/DeependraParichha1004/NFL/blob/main/NFL.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>","metadata":{"id":"view-in-github"}},{"cell_type":"markdown","source":"<img alt=\"NFLSchedule1050Web\" src=\"https://www.profootballhof.com/assets/1/6/NFLSchedule1050Web.jpg\" style=\"width: 600px; height: 377px; user-select: auto;\">","metadata":{}},{"cell_type":"markdown","source":"# NFL official Site\nhttps://www.nfl.com\n","metadata":{}},{"cell_type":"markdown","source":"# **Importing Libraries**","metadata":{"id":"z2oaDrwrh6zW"}},{"cell_type":"code","source":"import pandas as pd\nimport numpy as np\nimport seaborn as sb\nimport matplotlib.pyplot as plt\n\n# for colab\nimport os\nos.environ['KAGGLE_CONFIG_DIR']='/content'\n","metadata":{"id":"SVMgNiD2yTQo","execution":{"iopub.status.busy":"2021-12-11T13:10:09.302029Z","iopub.execute_input":"2021-12-11T13:10:09.302819Z","iopub.status.idle":"2021-12-11T13:10:10.406299Z","shell.execute_reply.started":"2021-12-11T13:10:09.30271Z","shell.execute_reply":"2021-12-11T13:10:10.404819Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"# for colab\n#!kaggle competitions download -c nfl-big-data-bowl-2022","metadata":{"id":"6o7uBu140-fd","outputId":"099c271e-da34-4299-affd-01748cad5ae4","execution":{"iopub.status.busy":"2021-12-11T13:10:38.352284Z","iopub.execute_input":"2021-12-11T13:10:38.35267Z","iopub.status.idle":"2021-12-11T13:10:38.357007Z","shell.execute_reply.started":"2021-12-11T13:10:38.352633Z","shell.execute_reply":"2021-12-11T13:10:38.355736Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# *Games Dataset*","metadata":{"id":"-LOoXyH0iGi8"}},{"cell_type":"code","source":"# Loading dataset games.csv\ngames = pd.read_csv('../input/nfl-big-data-bowl-2022/games.csv')","metadata":{"id":"pwJ_9-eS6hrP","outputId":"1e25ae61-b61b-42c4-8d3a-5ea976952ab0","execution":{"iopub.status.busy":"2021-12-11T13:12:38.701943Z","iopub.execute_input":"2021-12-11T13:12:38.702463Z","iopub.status.idle":"2021-12-11T13:12:38.725137Z","shell.execute_reply.started":"2021-12-11T13:12:38.70242Z","shell.execute_reply":"2021-12-11T13:12:38.723827Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"games.head()","metadata":{"execution":{"iopub.status.busy":"2021-12-11T13:13:05.456481Z","iopub.execute_input":"2021-12-11T13:13:05.456802Z","iopub.status.idle":"2021-12-11T13:13:05.482514Z","shell.execute_reply.started":"2021-12-11T13:13:05.45677Z","shell.execute_reply":"2021-12-11T13:13:05.481553Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"total=games['season'].value_counts().values.sum()\nseason=games['season'].value_counts().index\nNo=games['season'].value_counts().values","metadata":{"id":"ZqyoH01k-JBJ","execution":{"iopub.status.busy":"2021-12-11T13:13:09.625736Z","iopub.execute_input":"2021-12-11T13:13:09.626238Z","iopub.status.idle":"2021-12-11T13:13:09.638425Z","shell.execute_reply.started":"2021-12-11T13:13:09.6262Z","shell.execute_reply":"2021-12-11T13:13:09.637731Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plt.figure(figsize=(8,6))\nplt.pie(x=No,labels=season,colors=['gold','wheat','yellowgreen'],wedgeprops={'linewidth':2,'edgecolor':'k'},textprops={'fontweight':'bold'},autopct='%1.1f%%')\nplt.title('No of games per year',fontdict={'fontweight':'bold'})\nplt.show()","metadata":{"id":"OsMCJKO3K5Zk","outputId":"ef7316e1-b476-44d1-c170-5425d2e3dd67","execution":{"iopub.status.busy":"2021-12-11T13:13:11.520412Z","iopub.execute_input":"2021-12-11T13:13:11.521025Z","iopub.status.idle":"2021-12-11T13:13:11.667424Z","shell.execute_reply.started":"2021-12-11T13:13:11.520974Z","shell.execute_reply":"2021-12-11T13:13:11.66646Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# *Players Dataset*","metadata":{"id":"GqZXZUwcjOEO"}},{"cell_type":"code","source":"# Loading dataset players.csv\nplayers= pd.read_csv('../input/nfl-big-data-bowl-2022/players.csv')","metadata":{"id":"B3uWuxwWPXdf","outputId":"05c72f1a-af43-45eb-d42d-f39524959ea0","execution":{"iopub.status.busy":"2021-12-11T13:13:17.928734Z","iopub.execute_input":"2021-12-11T13:13:17.929033Z","iopub.status.idle":"2021-12-11T13:13:17.957313Z","shell.execute_reply.started":"2021-12-11T13:13:17.928999Z","shell.execute_reply":"2021-12-11T13:13:17.956706Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"players.head()","metadata":{"execution":{"iopub.status.busy":"2021-12-11T13:13:30.494053Z","iopub.execute_input":"2021-12-11T13:13:30.494338Z","iopub.status.idle":"2021-12-11T13:13:30.508042Z","shell.execute_reply.started":"2021-12-11T13:13:30.494308Z","shell.execute_reply":"2021-12-11T13:13:30.50715Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import missingno as msno\nfig=plt.figure(figsize=(6,5))\nmsno.bar(games)\nplt.show()","metadata":{"id":"9bkqtgtQigET","outputId":"ec7818ef-07e5-45fc-b96b-391c4f9c0312","execution":{"iopub.status.busy":"2021-12-11T13:13:59.906765Z","iopub.execute_input":"2021-12-11T13:13:59.907215Z","iopub.status.idle":"2021-12-11T13:14:00.682112Z","shell.execute_reply.started":"2021-12-11T13:13:59.907169Z","shell.execute_reply":"2021-12-11T13:14:00.681044Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"def bar_plot(col,df,cond,title):\n  plt.figure(figsize=(10,8))\n  sb.countplot(y=col,data=df,order=cond,palette='coolwarm_r')\n  plt.title(title,fontsize=16)\n  plt.show()","metadata":{"id":"XceEL2i9QZpC","execution":{"iopub.status.busy":"2021-12-11T13:14:10.181798Z","iopub.execute_input":"2021-12-11T13:14:10.182079Z","iopub.status.idle":"2021-12-11T13:14:10.187288Z","shell.execute_reply.started":"2021-12-11T13:14:10.18205Z","shell.execute_reply":"2021-12-11T13:14:10.186426Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"con=players['Position'].value_counts().index\nbar_plot('Position',players,con,'No of players wrt position')","metadata":{"id":"gfweQyyTUrlj","outputId":"208bfd9c-4de5-4fac-f3c5-c395c8197502","execution":{"iopub.status.busy":"2021-12-11T13:14:12.018952Z","iopub.execute_input":"2021-12-11T13:14:12.019789Z","iopub.status.idle":"2021-12-11T13:14:12.344098Z","shell.execute_reply.started":"2021-12-11T13:14:12.019743Z","shell.execute_reply":"2021-12-11T13:14:12.343192Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"players['birthDate']=pd.to_datetime(players['birthDate']).dt.year","metadata":{"id":"YNEMKDEUbJcu","execution":{"iopub.status.busy":"2021-12-11T13:14:15.235798Z","iopub.execute_input":"2021-12-11T13:14:15.236067Z","iopub.status.idle":"2021-12-11T13:14:15.249114Z","shell.execute_reply.started":"2021-12-11T13:14:15.236037Z","shell.execute_reply":"2021-12-11T13:14:15.247916Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"players['height']=players['height'].str.split('-').str[0].astype(int)","metadata":{"id":"lDfYugd5fgDk","execution":{"iopub.status.busy":"2021-12-11T13:14:15.67278Z","iopub.execute_input":"2021-12-11T13:14:15.673395Z","iopub.status.idle":"2021-12-11T13:14:15.684483Z","shell.execute_reply.started":"2021-12-11T13:14:15.67334Z","shell.execute_reply":"2021-12-11T13:14:15.68356Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"con_1=players['height'].value_counts().index\nbar_plot('height',players,con_1,'No of players wrt height')","metadata":{"id":"_EptVuT7n4d1","outputId":"5c0e15a1-9280-48b7-aea4-b2f20aeca783","execution":{"iopub.status.busy":"2021-12-11T13:14:16.154462Z","iopub.execute_input":"2021-12-11T13:14:16.155272Z","iopub.status.idle":"2021-12-11T13:14:16.416745Z","shell.execute_reply.started":"2021-12-11T13:14:16.155196Z","shell.execute_reply":"2021-12-11T13:14:16.415809Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#players['birthDate'].value_counts()\ncon_2=players['birthDate'].value_counts().index\nbar_plot('birthDate',players,con_2,'No of players wrt birthdate(Year)')","metadata":{"id":"kZN4IaK9sMJT","outputId":"5d41cdb5-6086-436d-95f8-18f3e4eb8573","execution":{"iopub.status.busy":"2021-12-11T13:14:16.475443Z","iopub.execute_input":"2021-12-11T13:14:16.475896Z","iopub.status.idle":"2021-12-11T13:14:16.790464Z","shell.execute_reply.started":"2021-12-11T13:14:16.475864Z","shell.execute_reply":"2021-12-11T13:14:16.789407Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"players.loc[players['height']>6  & (players['height']>70)]","metadata":{"id":"5NRZtyv7qsjG","outputId":"b6fc39c5-15db-485f-d965-ccb8c58c7e40","execution":{"iopub.status.busy":"2021-12-11T13:14:16.792262Z","iopub.execute_input":"2021-12-11T13:14:16.792581Z","iopub.status.idle":"2021-12-11T13:14:16.815376Z","shell.execute_reply.started":"2021-12-11T13:14:16.792537Z","shell.execute_reply":"2021-12-11T13:14:16.81478Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"birth_height=players.groupby('birthDate')['height'].mean()\nplt.figure(figsize=(20,10))\nax=sb.displot(data=players,x=\"height\",kde=True)\nplt.title('Players with heights')\nplt.show()","metadata":{"id":"EmWXO6gkzr-Y","outputId":"fb276dac-32a1-48a7-a354-1a01b5bff9ec","execution":{"iopub.status.busy":"2021-12-11T13:14:17.09836Z","iopub.execute_input":"2021-12-11T13:14:17.1006Z","iopub.status.idle":"2021-12-11T13:14:17.456946Z","shell.execute_reply.started":"2021-12-11T13:14:17.100546Z","shell.execute_reply":"2021-12-11T13:14:17.456116Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"birth_weight=players.groupby('birthDate')['weight'].mean()\nplt.figure(figsize=(20,10))\nax=sb.displot(data=players, x=\"weight\",kde=True)\nplt.title('Players with heights')\nplt.show()","metadata":{"id":"zwWXpInv1qJp","outputId":"127335f9-bd6c-468e-f1a2-826545e67e2a","execution":{"iopub.status.busy":"2021-12-11T13:14:17.458221Z","iopub.execute_input":"2021-12-11T13:14:17.459182Z","iopub.status.idle":"2021-12-11T13:14:17.814313Z","shell.execute_reply.started":"2021-12-11T13:14:17.459106Z","shell.execute_reply":"2021-12-11T13:14:17.813229Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# *Plays Dataset*","metadata":{"id":"pSnk5S_SlNeh"}},{"cell_type":"code","source":"# Loading dataset plays.csv\nplays= pd.read_csv('../input/nfl-big-data-bowl-2022/plays.csv')","metadata":{"execution":{"iopub.status.busy":"2021-12-11T13:14:35.245002Z","iopub.execute_input":"2021-12-11T13:14:35.245913Z","iopub.status.idle":"2021-12-11T13:14:35.337693Z","shell.execute_reply.started":"2021-12-11T13:14:35.245857Z","shell.execute_reply":"2021-12-11T13:14:35.336503Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plays.head()","metadata":{"execution":{"iopub.status.busy":"2021-12-11T13:14:44.646819Z","iopub.execute_input":"2021-12-11T13:14:44.64724Z","iopub.status.idle":"2021-12-11T13:14:44.677185Z","shell.execute_reply.started":"2021-12-11T13:14:44.647196Z","shell.execute_reply":"2021-12-11T13:14:44.676082Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"# for colab\n# import zipfile\n# zip_file=zipfile.ZipFile('plays.csv.zip')\n# plays=pd.read_csv(zip_file.open('plays.csv'))\n# plays.head()","metadata":{"id":"Ar58o_Tk5WUu","outputId":"068f50c8-85f5-4474-8ab6-d1a644854c6e","execution":{"iopub.status.busy":"2021-12-11T13:14:48.034548Z","iopub.execute_input":"2021-12-11T13:14:48.035219Z","iopub.status.idle":"2021-12-11T13:14:48.038727Z","shell.execute_reply.started":"2021-12-11T13:14:48.035168Z","shell.execute_reply":"2021-12-11T13:14:48.037886Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import missingno as msno\nplt.figure(figsize=(9,6))\nmsno.bar(plays)\nplt.show()","metadata":{"id":"wo38wKC7CjBw","outputId":"671cfb8a-7e5e-435a-fb18-55a6217b6c6f","execution":{"iopub.status.busy":"2021-12-11T13:14:48.576702Z","iopub.execute_input":"2021-12-11T13:14:48.577442Z","iopub.status.idle":"2021-12-11T13:14:50.85388Z","shell.execute_reply.started":"2021-12-11T13:14:48.577378Z","shell.execute_reply":"2021-12-11T13:14:50.852745Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"# percentage above the bar\ndef percent(ax,size):\n  for patch in ax.patches:\n    height = patch.get_height() # Figure height (number of data)\n    width = patch.get_width() # Figure width\n    x = patch.get_x() # The x-axis position on the left edge of the figure\n    y = patch.get_y() \n    \n    percent=(height/size)*100\n    # Type text in the (x, y) coordinates\n    ax.text(x+width/2,\n        y+height*1.01,\n            #s=f'{percent:1.1f}%', # Text\n            s=f'{percent:1.1f}%',\n            ha='center')\n    \n          ","metadata":{"id":"YebeTw9fEQEb","execution":{"iopub.status.busy":"2021-12-11T13:14:50.856588Z","iopub.execute_input":"2021-12-11T13:14:50.857515Z","iopub.status.idle":"2021-12-11T13:14:50.864984Z","shell.execute_reply.started":"2021-12-11T13:14:50.85743Z","shell.execute_reply":"2021-12-11T13:14:50.863969Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig=plt.figure(figsize=(6,6))\nax=sb.countplot(x='quarter',data=plays,palette='Blues')\nax.set_title('No of plays on each quarter')\npercent(ax,plays.shape[0])\n\nplt.show()","metadata":{"id":"ZliZL27fD9jD","outputId":"accc2c7f-f92e-4eb4-f7e1-e43cbe39c496","execution":{"iopub.status.busy":"2021-12-11T13:14:50.867012Z","iopub.execute_input":"2021-12-11T13:14:50.867669Z","iopub.status.idle":"2021-12-11T13:14:51.080936Z","shell.execute_reply.started":"2021-12-11T13:14:50.867615Z","shell.execute_reply":"2021-12-11T13:14:51.080249Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig=plt.figure(figsize=(15,8))\nax_2=sb.countplot(x='possessionTeam',data=plays,palette='Greys')\nax_2.set_title('Teams Possessions',{'fontweight':16})\npercent(ax_2,plays.shape[0])\n\nplt.show()","metadata":{"id":"eW8pgrE0OIdv","outputId":"7a0abe23-999e-4656-c09c-c0c4e18527db","execution":{"iopub.status.busy":"2021-12-11T13:14:55.019022Z","iopub.execute_input":"2021-12-11T13:14:55.019448Z","iopub.status.idle":"2021-12-11T13:14:55.5443Z","shell.execute_reply.started":"2021-12-11T13:14:55.019417Z","shell.execute_reply":"2021-12-11T13:14:55.543626Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig=plt.figure(figsize=(14,10))\ncorr=plays.corr('pearson')\nsb.heatmap(corr,cmap='RdBu_r',annot=True)\nplt.show()","metadata":{"id":"Qho71nZEEWua","outputId":"e3bb3bbe-a5d6-4f14-8727-09432816f2ee","execution":{"iopub.status.busy":"2021-12-11T13:14:55.545918Z","iopub.execute_input":"2021-12-11T13:14:55.546129Z","iopub.status.idle":"2021-12-11T13:14:56.888908Z","shell.execute_reply.started":"2021-12-11T13:14:55.546102Z","shell.execute_reply":"2021-12-11T13:14:56.887658Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig=plt.figure(figsize=(8,6))\nax_3=sb.countplot(x='down',data=plays,palette='YlOrBr_r')\npercent(ax_3,plays.shape[0])\nplt.title('Plays on each down',{'fontweight':5})\nplt.show()","metadata":{"id":"4abOEKu7AmBJ","outputId":"7f09f0ef-485d-4534-bc29-1128ba3b0525","execution":{"iopub.status.busy":"2021-12-11T13:14:56.93146Z","iopub.execute_input":"2021-12-11T13:14:56.931894Z","iopub.status.idle":"2021-12-11T13:14:57.14008Z","shell.execute_reply.started":"2021-12-11T13:14:56.931864Z","shell.execute_reply":"2021-12-11T13:14:57.13932Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"pass_result=plays[~plays['passResult'].isna()]\npass_result.head()","metadata":{"id":"LAqErT_nBbbZ","outputId":"ab3028da-a6af-41bf-c08b-447a8b22c8a6","execution":{"iopub.status.busy":"2021-12-11T13:14:58.508289Z","iopub.execute_input":"2021-12-11T13:14:58.508705Z","iopub.status.idle":"2021-12-11T13:14:58.534171Z","shell.execute_reply.started":"2021-12-11T13:14:58.508668Z","shell.execute_reply":"2021-12-11T13:14:58.533549Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"def pie_v(df,col,title):\n  val=df[col].value_counts().values\n  cat=df[col].value_counts().index\n  fig,ax=plt.subplots(figsize =(10, 7))\n  wedges,texts,autotexts=ax.pie(x=val,explode=[0,0.1,0.1,0],labels=cat,colors=['gold','wheat','yellowgreen','darkgoldenrod'],wedgeprops={'linewidth':2,'edgecolor':'k'},textprops={'fontweight':'bold','fontsize':17},autopct='%1.1f%%')\n  ax.legend(wedges,cat,title=\"Passes\",loc =\"center left\",bbox_to_anchor =(1, 0, 0.5, 1))\n  plt.setp(autotexts,size=10,weight='bold')\n  plt.title(title,fontdict={'fontweight':'bold'})\n  plt.show()","metadata":{"id":"XDUGJt_iDgwv","execution":{"iopub.status.busy":"2021-12-11T13:14:59.850741Z","iopub.execute_input":"2021-12-11T13:14:59.851434Z","iopub.status.idle":"2021-12-11T13:14:59.861033Z","shell.execute_reply.started":"2021-12-11T13:14:59.851377Z","shell.execute_reply":"2021-12-11T13:14:59.86023Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"pie_v(pass_result,\"passResult\",'plays(in %) for eacj types of passes')","metadata":{"id":"c1U4l0zXGRMJ","outputId":"72e89d2b-700a-4493-b076-9061effd56dd","execution":{"iopub.status.busy":"2021-12-11T13:15:01.085003Z","iopub.execute_input":"2021-12-11T13:15:01.085582Z","iopub.status.idle":"2021-12-11T13:15:01.238294Z","shell.execute_reply.started":"2021-12-11T13:15:01.085536Z","shell.execute_reply":"2021-12-11T13:15:01.237585Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"kick_length=plays[~plays['kickLength'].isna()]\nteam_kick_length=plays.groupby('possessionTeam')['kickLength'].max()\n# plt.plot(plays.possessionTeam,plays.kickLength)\n# plt.show()\nteam_kick_length_df=pd.DataFrame({'PossessionTeam':team_kick_length.index,'Max_kick_Length':team_kick_length.values})\n","metadata":{"id":"3gdJmkQfJIYV","execution":{"iopub.status.busy":"2021-12-11T13:15:02.245192Z","iopub.execute_input":"2021-12-11T13:15:02.2459Z","iopub.status.idle":"2021-12-11T13:15:02.259085Z","shell.execute_reply.started":"2021-12-11T13:15:02.245854Z","shell.execute_reply":"2021-12-11T13:15:02.258395Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"team_kick_length_df_max=team_kick_length_df[team_kick_length_df['Max_kick_Length']>75.0]\nteam_kick_length_df_max","metadata":{"id":"JOINn3PeWLY6","outputId":"bb0a543a-604f-4b50-e698-508106f3b51e","execution":{"iopub.status.busy":"2021-12-11T13:15:03.324183Z","iopub.execute_input":"2021-12-11T13:15:03.324901Z","iopub.status.idle":"2021-12-11T13:15:03.33543Z","shell.execute_reply.started":"2021-12-11T13:15:03.32486Z","shell.execute_reply":"2021-12-11T13:15:03.334846Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"colors=['#FF00FF','#FF69B4','#CD5C5C','#4B0082','#FFFFF0','#F0E68C']\nfig=plt.figure(figsize=(7,5))\nplt.bar(x=team_kick_length_df_max.PossessionTeam,color='#CD5C5C',height=team_kick_length_df_max.Max_kick_Length)\nplt.xlabel('Teams')\nplt.ylabel('Kick Length')\nplt.title('Top 6 Teams with their Max kick lengths')\nplt.show()","metadata":{"id":"I7PpHvkLYiIq","outputId":"fb2154ae-e805-4688-bd20-3b4c59cc78fc","execution":{"iopub.status.busy":"2021-12-11T13:15:04.31517Z","iopub.execute_input":"2021-12-11T13:15:04.315727Z","iopub.status.idle":"2021-12-11T13:15:04.504866Z","shell.execute_reply.started":"2021-12-11T13:15:04.315691Z","shell.execute_reply":"2021-12-11T13:15:04.504161Z"},"trusted":true},"execution_count":null,"outputs":[]}]}