{"cells":[{"metadata":{"_uuid":"0248475b650aeb5d207e1c6e760629e714098279"},"cell_type":"markdown","source":"***EDA******"},{"metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true},"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)\nimport matplotlib.pyplot as plt\nimport seaborn as sns\n\nimport os\nprint(os.listdir(\"../input\"))\n\n# Any results you write to the current directory are saved as output.","execution_count":null,"outputs":[]},{"metadata":{"_cell_guid":"79c7e3d0-c299-4dcb-8224-4455121ee9b0","collapsed":true,"_uuid":"d629ff2d2480ee46fbb7e2d37f6b5fab8052498a","trusted":false},"cell_type":"markdown","source":"Based on  data we defined the  rules , first  we need to exploitation the  data  analysis."},{"metadata":{"trusted":true,"_uuid":"53e89d85b19f9eff1385df03f6f4d8fb58099532"},"cell_type":"code","source":"vedio_re=pd.read_csv('../input/video_review.csv')","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"15e3f30d07a7aed711ca58270513c7bb171cb25b"},"cell_type":"code","source":"vedio_re.head()","execution_count":null,"outputs":[]},{"metadata":{"_uuid":"a25db1c79dec6ba5b77b0c6e2ce162af1ecc8d23"},"cell_type":"markdown","source":"we need to find the which activity is more effectd to  the players"},{"metadata":{"trusted":true,"_uuid":"d3ae4c61f18c802be5381438d4b0645fd0155b6b"},"cell_type":"code","source":"vedio_re.Primary_Impact_Type.value_counts().plot.bar()","execution_count":null,"outputs":[]},{"metadata":{"_uuid":"7e1203e603071c337073f602d6c02f17d3049c7e"},"cell_type":"markdown","source":"Based on reviews data Helmet to body is more effectd to the plays"},{"metadata":{"trusted":true,"_uuid":"cf856d60462af423b5e3beaff2bb83f4d149ecfe"},"cell_type":"code","source":"vedio_re.groupby(['Player_Activity_Derived', 'Primary_Partner_Activity_Derived'])['Primary_Impact_Type'].value_counts().plot.bar()","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"2dac185550e91036de59fe0071c85f3e9af566b2"},"cell_type":"code","source":"vedio_re.groupby(['Player_Activity_Derived', 'Primary_Partner_Activity_Derived'])['GameKey'].value_counts().plot.bar()","execution_count":null,"outputs":[]},{"metadata":{"_uuid":"e52d61065590f2f1801cec93665f642ba0524351"},"cell_type":"markdown","source":"Based on Game key  data  blocking is more effectd to players "},{"metadata":{"trusted":true,"_uuid":"d449246f777fca2cdee4a581d9646512d1d2447d"},"cell_type":"code","source":"vedio_inj=pd.read_csv(\"../input/video_footage-injury.csv\")","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"7a69684c96bf273834d0bbc2ac6987aad822ef29"},"cell_type":"code","source":"vedio_inj.head()","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"4f33bd982304fb3ad0b1becddf0dcb81082be45d"},"cell_type":"code","source":"\nsns.set(style=\"whitegrid\")\ng = sns.PairGrid(vedio_inj, y_vars=\"PlayDescription\",\n                 x_vars=[\"season\", \"gamekey\", \"playid\"],\n                 height=5, aspect=.5)\n\n# Draw a seaborn pointplot onto each Axes\ng.map(sns.pointplot, scale=1.3, errwidth=4, color=\"xkcd:plum\")\ng.set(ylim=(0, 1))\nsns.despine(fig=g.fig, left=True)\n","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"8b52e588a82313a01437e10092b2abc9b82df645"},"cell_type":"code","source":"gamedata=pd.read_csv(\"../input/game_data.csv\")","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"48c974a6f2bf1596cecf7cdc36d8a7b4e869d657"},"cell_type":"code","source":"gamedata.head()","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"4186cff284cec362f7e08b4945f1212ec80798f1"},"cell_type":"code","source":"","execution_count":null,"outputs":[]}],"metadata":{"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"name":"python","version":"3.6.6","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"}},"nbformat":4,"nbformat_minor":1}