{"action":"opened","issue":{"url":"https://api.github.com/repos/MicrosoftLearning/Data-Science-Essentials/issues/3","repository_url":"https://api.github.com/repos/MicrosoftLearning/Data-Science-Essentials","labels_url":"https://api.github.com/repos/MicrosoftLearning/Data-Science-Essentials/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/MicrosoftLearning/Data-Science-Essentials/issues/3/comments","events_url":"https://api.github.com/repos/MicrosoftLearning/Data-Science-Essentials/issues/3/events","html_url":"https://github.com/MicrosoftLearning/Data-Science-Essentials/issues/3","id":327678060,"number":3,"title":"Command to show plot missing in Lab 2 Instructions","user":{"login":"vineetfrozeninferno","id":10280037,"avatar_url":"https://avatars0.githubusercontent.com/u/10280037?v=4","gravatar_id":"","url":"https://api.github.com/users/vineetfrozeninferno","html_url":"https://github.com/vineetfrozeninferno","followers_url":"https://api.github.com/users/vineetfrozeninferno/followers","following_url":"https://api.github.com/users/vineetfrozeninferno/following{/other_user}","gists_url":"https://api.github.com/users/vineetfrozeninferno/gists{/gist_id}","starred_url":"https://api.github.com/users/vineetfrozeninferno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vineetfrozeninferno/subscriptions","organizations_url":"https://api.github.com/users/vineetfrozeninferno/orgs","repos_url":"https://api.github.com/users/vineetfrozeninferno/repos","events_url":"https://api.github.com/users/vineetfrozeninferno/events{/privacy}","received_events_url":"https://api.github.com/users/vineetfrozeninferno/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-30T10:54:49Z","updated_at":"2018-05-30T10:54:49Z","closed_at":null,"author_association":"NONE","body":"In the pdf - https://github.com/MicrosoftLearning/Data-Science-Essentials/blob/master/Labs/DAT203.1X%20Lab%202%20-%20Summary%20Statistics.pdf\r\nThe section `Visualize Summary Statistics for Price` under the python experiment with the function `plotstats`, does not display the plot/graph. This is because it is missing a `plt.show()` line.\r\n\r\nIt should be\r\n\r\n```\r\ndef plotstats(df, col):\r\n          import matplotlib.pyplot as plt\r\n          ## Setup for ploting two charts one over the other\r\n          fig, ax = plt.subplots(2, 1, figsize = (12,8))\r\n          ## First a box plot\r\n          df.dropna().boxplot(col, ax = ax[0], vert=False,\r\n                              return_type='dict')\r\n          ## Plot the histogram\r\n          temp = df[col].as_matrix()\r\n          ax[1].hist(temp, bins = 30, alpha = 0.7)\r\n          plt.ylabel('Number of Cars')\r\n          plt.xlabel(col)\r\n          plt.show()\r\n          return [col]\r\n\r\n```"}}
{"actor":{"display_login":"vineetfrozeninferno"}}