{"cells":[{"metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true},"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 in \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 \"../input/\" directory.\n# For example, running this (by clicking run or pressing Shift+Enter) will list the files in the input directory\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","_uuid":"d629ff2d2480ee46fbb7e2d37f6b5fab8052498a","trusted":true},"cell_type":"code","source":"data=pd.read_csv('../input/pokemon.csv')\ndata.sample(10)","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"66d4d5e870c3f86a45794c60c88ca875b68a94e2"},"cell_type":"code","source":"data.info()","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"e993ad4e5df2e1fb8351d7c6a5e07b2cc41dde42"},"cell_type":"code","source":"data.type1.value_counts().plot.bar()","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"0ca989d4526cb136d7d9cb9fb3c8f1de29b64fe3"},"cell_type":"code","source":"data.hp.value_counts().sort_index().plot.line()","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"scrolled":true,"_uuid":"c4dd39c9f664ac1ffd4c39c3ac9a30c6ef9fed30"},"cell_type":"code","source":"data.weight_kg.plot.hist()","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"4787c256dab530b5c1d296a3a01954b0ae8c9a12"},"cell_type":"code","source":"data.plot.scatter(x='attack',y='defense')","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"37cc55635011f922a3d048e7cac638242ae78e31"},"cell_type":"code","source":"data.plot.hexbin(x='attack',y='defense',gridsize=15)","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"db01ac1d426096cda6312e86e291b682321fed15"},"cell_type":"code","source":"data.groupby(['is_legendary', 'generation']).mean()[['attack','defense']].plot.bar(stacked=True)","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"0a6bb868bf86c69e8e94b7e5719d484e9c1c535c"},"cell_type":"code","source":"data.groupby('generation').mean()[['hp', 'attack', 'defense', 'sp_attack', 'sp_defense', 'speed']].plot.line()","execution_count":null,"outputs":[]}],"metadata":{"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"},"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"}},"nbformat":4,"nbformat_minor":1}