{"action":"created","comment":{"url":"https://api.github.com/repos/sree94/My-first/pulls/comments/127990040","pull_request_review_id":50626920,"id":127990040,"diff_hunk":"@@ -1 +1,3 @@\n-# My-first\n\\ No newline at end of file\n+# My-first\n+Hi all,","path":"README.md","position":4,"original_position":4,"commit_id":"439dba34ad3010458eed2c15e93c8e1a8f87bcf7","original_commit_id":"439dba34ad3010458eed2c15e93c8e1a8f87bcf7","user":{"login":"sree94","id":21035511,"avatar_url":"https://avatars0.githubusercontent.com/u/21035511?v=4","gravatar_id":"","url":"https://api.github.com/users/sree94","html_url":"https://github.com/sree94","followers_url":"https://api.github.com/users/sree94/followers","following_url":"https://api.github.com/users/sree94/following{/other_user}","gists_url":"https://api.github.com/users/sree94/gists{/gist_id}","starred_url":"https://api.github.com/users/sree94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sree94/subscriptions","organizations_url":"https://api.github.com/users/sree94/orgs","repos_url":"https://api.github.com/users/sree94/repos","events_url":"https://api.github.com/users/sree94/events{/privacy}","received_events_url":"https://api.github.com/users/sree94/received_events","type":"User","site_admin":false},"body":"from azureml import Workspace\r\nimport pandas as pd\r\nimport numpy as np\r\nimport matplotlib as plt\r\nimport sklearn\r\n\r\nws = Workspace()\r\nds = ws.datasets['train (2).csv']\r\ntrain = ds.to_dataframe()\r\n\r\n\r\nds1 = ws.datasets['test (1).csv']\r\ntest = ds1.to_dataframe()\r\ntest_modified=ds1.to_dataframe()\r\n\r\na=test.isnull().sum()\r\n#print(a)\r\nmean_age=np.mean(train.Age)\r\ntrain.Age = train.Age.fillna(mean_age)\r\n\r\nmean_age1=np.mean(test_modified.Age)\r\ntest_modified.Age = test_modified.Age.fillna(mean_age1)\r\n#print(test_modified)\r\n\r\ntrain = train.drop(['Cabin','Ticket'],axis=1)\r\ntrain['Age'] = np.log(train['Age'])\r\n#print(train)\r\n\r\nfrom sklearn.preprocessing import LabelEncoder\r\nnumber = LabelEncoder()\r\ntrain['Sex'] = number.fit_transform(train['Sex'].astype(str))\r\n#print(train['Sex_New'])\r\n#print(train)\r\n\r\ntest_modified['Sex'] = number.fit_transform(test_modified['Sex'].astype(str))\r\ntest_modified['Age'] = np.log(test_modified['Age'])\r\n#print(test_modified)\r\n\r\nimport sklearn.linear_model\r\npredictors =['Sex','Age','Pclass']\r\nx_train = train[predictors].values\r\n#print(x_train)\r\ny_train = train['Survived'].values\r\n\r\n#print(x_test)\r\n\r\nmodel = sklearn.linear_model.LogisticRegression()\r\nmodel.fit(x_train,y_train)\r\nx_test = test_modified[predictors].values\r\n#print(x_test)","created_at":"2017-07-18T14:24:03Z","updated_at":"2017-07-18T14:24:03Z","html_url":"https://github.com/sree94/My-first/pull/1#discussion_r127990040","pull_request_url":"https://api.github.com/repos/sree94/My-first/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/sree94/My-first/pulls/comments/127990040"},"html":{"href":"https://github.com/sree94/My-first/pull/1#discussion_r127990040"},"pull_request":{"href":"https://api.github.com/repos/sree94/My-first/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/sree94/My-first/pulls/1","id":81291301,"html_url":"https://github.com/sree94/My-first/pull/1","diff_url":"https://github.com/sree94/My-first/pull/1.diff","patch_url":"https://github.com/sree94/My-first/pull/1.patch","issue_url":"https://api.github.com/repos/sree94/My-first/issues/1","number":1,"state":"closed","locked":false,"title":"Update README.md","user":{"login":"sree94","id":21035511,"avatar_url":"https://avatars0.githubusercontent.com/u/21035511?v=4","gravatar_id":"","url":"https://api.github.com/users/sree94","html_url":"https://github.com/sree94","followers_url":"https://api.github.com/users/sree94/followers","following_url":"https://api.github.com/users/sree94/following{/other_user}","gists_url":"https://api.github.com/users/sree94/gists{/gist_id}","starred_url":"https://api.github.com/users/sree94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sree94/subscriptions","organizations_url":"https://api.github.com/users/sree94/orgs","repos_url":"https://api.github.com/users/sree94/repos","events_url":"https://api.github.com/users/sree94/events{/privacy}","received_events_url":"https://api.github.com/users/sree94/received_events","type":"User","site_admin":false},"body":":)\n","created_at":"2016-08-15T09:51:08Z","updated_at":"2017-07-18T14:24:03Z","closed_at":"2016-08-15T09:51:28Z","merged_at":"2016-08-15T09:51:28Z","merge_commit_sha":"d3ca56f74f5f8ab0175ef1783b55a83d2658e9ff","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/sree94/My-first/pulls/1/commits","review_comments_url":"https://api.github.com/repos/sree94/My-first/pulls/1/comments","review_comment_url":"https://api.github.com/repos/sree94/My-first/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sree94/My-first/issues/1/comments","statuses_url":"https://api.github.com/repos/sree94/My-first/statuses/439dba34ad3010458eed2c15e93c8e1a8f87bcf7","head":{"label":"sree94:readme-edits","ref":"readme-edits","sha":"439dba34ad3010458eed2c15e93c8e1a8f87bcf7","user":{"login":"sree94","id":21035511,"avatar_url":"https://avatars0.githubusercontent.com/u/21035511?v=4","gravatar_id":"","url":"https://api.github.com/users/sree94","html_url":"https://github.com/sree94","followers_url":"https://api.github.com/users/sree94/followers","following_url":"https://api.github.com/users/sree94/following{/other_user}","gists_url":"https://api.github.com/users/sree94/gists{/gist_id}","starred_url":"https://api.github.com/users/sree94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sree94/subscriptions","organizations_url":"https://api.github.com/users/sree94/orgs","repos_url":"https://api.github.com/users/sree94/repos","events_url":"https://api.github.com/users/sree94/events{/privacy}","received_events_url":"https://api.github.com/users/sree94/received_events","type":"User","site_admin":false},"repo":{"id":65721778,"name":"My-first","full_name":"sree94/My-first","owner":{"login":"sree94","id":21035511,"avatar_url":"https://avatars0.githubusercontent.com/u/21035511?v=4","gravatar_id":"","url":"https://api.github.com/users/sree94","html_url":"https://github.com/sree94","followers_url":"https://api.github.com/users/sree94/followers","following_url":"https://api.github.com/users/sree94/following{/other_user}","gists_url":"https://api.github.com/users/sree94/gists{/gist_id}","starred_url":"https://api.github.com/users/sree94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sree94/subscriptions","organizations_url":"https://api.github.com/users/sree94/orgs","repos_url":"https://api.github.com/users/sree94/repos","events_url":"https://api.github.com/users/sree94/events{/privacy}","received_events_url":"https://api.github.com/users/sree94/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sree94/My-first","description":null,"fork":false,"url":"https://api.github.com/repos/sree94/My-first","forks_url":"https://api.github.com/repos/sree94/My-first/forks","keys_url":"https://api.github.com/repos/sree94/My-first/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sree94/My-first/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sree94/My-first/teams","hooks_url":"https://api.github.com/repos/sree94/My-first/hooks","issue_events_url":"https://api.github.com/repos/sree94/My-first/issues/events{/number}","events_url":"https://api.github.com/repos/sree94/My-first/events","assignees_url":"https://api.github.com/repos/sree94/My-first/assignees{/user}","branches_url":"https://api.github.com/repos/sree94/My-first/branches{/branch}","tags_url":"https://api.github.com/repos/sree94/My-first/tags","blobs_url":"https://api.github.com/repos/sree94/My-first/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sree94/My-first/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sree94/My-first/git/refs{/sha}","trees_url":"https://api.github.com/repos/sree94/My-first/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sree94/My-first/statuses/{sha}","languages_url":"https://api.github.com/repos/sree94/My-first/languages","stargazers_url":"https://api.github.com/repos/sree94/My-first/stargazers","contributors_url":"https://api.github.com/repos/sree94/My-first/contributors","subscribers_url":"https://api.github.com/repos/sree94/My-first/subscribers","subscription_url":"https://api.github.com/repos/sree94/My-first/subscription","commits_url":"https://api.github.com/repos/sree94/My-first/commits{/sha}","git_commits_url":"https://api.github.com/repos/sree94/My-first/git/commits{/sha}","comments_url":"https://api.github.com/repos/sree94/My-first/comments{/number}","issue_comment_url":"https://api.github.com/repos/sree94/My-first/issues/comments{/number}","contents_url":"https://api.github.com/repos/sree94/My-first/contents/{+path}","compare_url":"https://api.github.com/repos/sree94/My-first/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sree94/My-first/merges","archive_url":"https://api.github.com/repos/sree94/My-first/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sree94/My-first/downloads","issues_url":"https://api.github.com/repos/sree94/My-first/issues{/number}","pulls_url":"https://api.github.com/repos/sree94/My-first/pulls{/number}","milestones_url":"https://api.github.com/repos/sree94/My-first/milestones{/number}","notifications_url":"https://api.github.com/repos/sree94/My-first/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sree94/My-first/labels{/name}","releases_url":"https://api.github.com/repos/sree94/My-first/releases{/id}","deployments_url":"https://api.github.com/repos/sree94/My-first/deployments","created_at":"2016-08-15T09:43:21Z","updated_at":"2016-08-15T09:43:21Z","pushed_at":"2016-08-15T09:51:29Z","git_url":"git://github.com/sree94/My-first.git","ssh_url":"git@github.com:sree94/My-first.git","clone_url":"https://github.com/sree94/My-first.git","svn_url":"https://github.com/sree94/My-first","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sree94:master","ref":"master","sha":"4f830be06b0717a687d3cca3f8c84b98b5fba7cc","user":{"login":"sree94","id":21035511,"avatar_url":"https://avatars0.githubusercontent.com/u/21035511?v=4","gravatar_id":"","url":"https://api.github.com/users/sree94","html_url":"https://github.com/sree94","followers_url":"https://api.github.com/users/sree94/followers","following_url":"https://api.github.com/users/sree94/following{/other_user}","gists_url":"https://api.github.com/users/sree94/gists{/gist_id}","starred_url":"https://api.github.com/users/sree94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sree94/subscriptions","organizations_url":"https://api.github.com/users/sree94/orgs","repos_url":"https://api.github.com/users/sree94/repos","events_url":"https://api.github.com/users/sree94/events{/privacy}","received_events_url":"https://api.github.com/users/sree94/received_events","type":"User","site_admin":false},"repo":{"id":65721778,"name":"My-first","full_name":"sree94/My-first","owner":{"login":"sree94","id":21035511,"avatar_url":"https://avatars0.githubusercontent.com/u/21035511?v=4","gravatar_id":"","url":"https://api.github.com/users/sree94","html_url":"https://github.com/sree94","followers_url":"https://api.github.com/users/sree94/followers","following_url":"https://api.github.com/users/sree94/following{/other_user}","gists_url":"https://api.github.com/users/sree94/gists{/gist_id}","starred_url":"https://api.github.com/users/sree94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sree94/subscriptions","organizations_url":"https://api.github.com/users/sree94/orgs","repos_url":"https://api.github.com/users/sree94/repos","events_url":"https://api.github.com/users/sree94/events{/privacy}","received_events_url":"https://api.github.com/users/sree94/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sree94/My-first","description":null,"fork":false,"url":"https://api.github.com/repos/sree94/My-first","forks_url":"https://api.github.com/repos/sree94/My-first/forks","keys_url":"https://api.github.com/repos/sree94/My-first/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sree94/My-first/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sree94/My-first/teams","hooks_url":"https://api.github.com/repos/sree94/My-first/hooks","issue_events_url":"https://api.github.com/repos/sree94/My-first/issues/events{/number}","events_url":"https://api.github.com/repos/sree94/My-first/events","assignees_url":"https://api.github.com/repos/sree94/My-first/assignees{/user}","branches_url":"https://api.github.com/repos/sree94/My-first/branches{/branch}","tags_url":"https://api.github.com/repos/sree94/My-first/tags","blobs_url":"https://api.github.com/repos/sree94/My-first/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sree94/My-first/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sree94/My-first/git/refs{/sha}","trees_url":"https://api.github.com/repos/sree94/My-first/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sree94/My-first/statuses/{sha}","languages_url":"https://api.github.com/repos/sree94/My-first/languages","stargazers_url":"https://api.github.com/repos/sree94/My-first/stargazers","contributors_url":"https://api.github.com/repos/sree94/My-first/contributors","subscribers_url":"https://api.github.com/repos/sree94/My-first/subscribers","subscription_url":"https://api.github.com/repos/sree94/My-first/subscription","commits_url":"https://api.github.com/repos/sree94/My-first/commits{/sha}","git_commits_url":"https://api.github.com/repos/sree94/My-first/git/commits{/sha}","comments_url":"https://api.github.com/repos/sree94/My-first/comments{/number}","issue_comment_url":"https://api.github.com/repos/sree94/My-first/issues/comments{/number}","contents_url":"https://api.github.com/repos/sree94/My-first/contents/{+path}","compare_url":"https://api.github.com/repos/sree94/My-first/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sree94/My-first/merges","archive_url":"https://api.github.com/repos/sree94/My-first/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sree94/My-first/downloads","issues_url":"https://api.github.com/repos/sree94/My-first/issues{/number}","pulls_url":"https://api.github.com/repos/sree94/My-first/pulls{/number}","milestones_url":"https://api.github.com/repos/sree94/My-first/milestones{/number}","notifications_url":"https://api.github.com/repos/sree94/My-first/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sree94/My-first/labels{/name}","releases_url":"https://api.github.com/repos/sree94/My-first/releases{/id}","deployments_url":"https://api.github.com/repos/sree94/My-first/deployments","created_at":"2016-08-15T09:43:21Z","updated_at":"2016-08-15T09:43:21Z","pushed_at":"2016-08-15T09:51:29Z","git_url":"git://github.com/sree94/My-first.git","ssh_url":"git@github.com:sree94/My-first.git","clone_url":"https://github.com/sree94/My-first.git","svn_url":"https://github.com/sree94/My-first","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sree94/My-first/pulls/1"},"html":{"href":"https://github.com/sree94/My-first/pull/1"},"issue":{"href":"https://api.github.com/repos/sree94/My-first/issues/1"},"comments":{"href":"https://api.github.com/repos/sree94/My-first/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/sree94/My-first/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/sree94/My-first/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sree94/My-first/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/sree94/My-first/statuses/439dba34ad3010458eed2c15e93c8e1a8f87bcf7"}}}}
{"actor":{"display_login":"sree94"}}