{"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 pandas as pd\nimport numpy as np\nimport matplotlib.pyplot as plt\nimport seaborn as sns","metadata":{"execution":{"iopub.status.busy":"2021-12-22T16:28:56.06227Z","iopub.execute_input":"2021-12-22T16:28:56.062592Z","iopub.status.idle":"2021-12-22T16:28:57.076755Z","shell.execute_reply.started":"2021-12-22T16:28:56.062501Z","shell.execute_reply":"2021-12-22T16:28:57.076053Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"players = pd.read_csv(\"players.csv\")","metadata":{"execution":{"iopub.status.busy":"2021-12-22T16:28:57.07813Z","iopub.execute_input":"2021-12-22T16:28:57.078691Z","iopub.status.idle":"2021-12-22T16:28:57.203439Z","shell.execute_reply.started":"2021-12-22T16:28:57.078659Z","shell.execute_reply":"2021-12-22T16:28:57.202177Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"players.head()","metadata":{"execution":{"iopub.status.busy":"2021-12-22T16:28:57.204389Z","iopub.status.idle":"2021-12-22T16:28:57.204887Z","shell.execute_reply.started":"2021-12-22T16:28:57.204681Z","shell.execute_reply":"2021-12-22T16:28:57.204708Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"players.describe()","metadata":{"execution":{"iopub.status.busy":"2021-12-22T16:28:57.205995Z","iopub.status.idle":"2021-12-22T16:28:57.20651Z","shell.execute_reply.started":"2021-12-22T16:28:57.206314Z","shell.execute_reply":"2021-12-22T16:28:57.206334Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"players.shape","metadata":{"execution":{"iopub.status.busy":"2021-12-22T16:28:57.207495Z","iopub.status.idle":"2021-12-22T16:28:57.207967Z","shell.execute_reply.started":"2021-12-22T16:28:57.207763Z","shell.execute_reply":"2021-12-22T16:28:57.207796Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"players.isnull().sum()","metadata":{"execution":{"iopub.status.busy":"2021-12-22T16:28:57.208902Z","iopub.status.idle":"2021-12-22T16:28:57.209366Z","shell.execute_reply.started":"2021-12-22T16:28:57.209176Z","shell.execute_reply":"2021-12-22T16:28:57.209195Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"top_10 = players.groupby(['Position'])['Position'].count().sort_values(ascending=False).head(10)\ntop_10.plot(kind='bar', figsize=(10, 6))\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-12-22T16:28:57.210461Z","iopub.status.idle":"2021-12-22T16:28:57.21089Z","shell.execute_reply.started":"2021-12-22T16:28:57.210644Z","shell.execute_reply":"2021-12-22T16:28:57.210664Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"top_10 = players.groupby(['collegeName'])['collegeName'].count().sort_values(ascending=False).head(10)\ntop_10.plot(kind='bar', figsize=(10, 5))\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-12-22T16:28:57.212112Z","iopub.status.idle":"2021-12-22T16:28:57.212484Z","shell.execute_reply.started":"2021-12-22T16:28:57.212286Z","shell.execute_reply":"2021-12-22T16:28:57.212312Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(10, 6))\nax = fig.add_subplot(111)\nax.set_title('Players Weight vs Position')\nax.set_xlabel('Weight in kg')\nax.set_ylabel('Position')\nax.set_ylim(0, 150)\n\nplayers.weight.hist(bins=50, ax=ax)\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-12-22T16:28:57.213963Z","iopub.status.idle":"2021-12-22T16:28:57.214319Z","shell.execute_reply.started":"2021-12-22T16:28:57.214125Z","shell.execute_reply":"2021-12-22T16:28:57.214151Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}