{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/13266","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/13266/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/13266/comments","events_url":"https://api.github.com/repos/apache/spark/issues/13266/events","html_url":"https://github.com/apache/spark/pull/13266","id":156375520,"number":13266,"title":"[SPARK-15492][ML][DOC]:Binarization scala example copy & paste to spark-shell error","user":{"login":"wangmiao1981","id":5033592,"avatar_url":"https://avatars.githubusercontent.com/u/5033592?v=3","gravatar_id":"","url":"https://api.github.com/users/wangmiao1981","html_url":"https://github.com/wangmiao1981","followers_url":"https://api.github.com/users/wangmiao1981/followers","following_url":"https://api.github.com/users/wangmiao1981/following{/other_user}","gists_url":"https://api.github.com/users/wangmiao1981/gists{/gist_id}","starred_url":"https://api.github.com/users/wangmiao1981/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangmiao1981/subscriptions","organizations_url":"https://api.github.com/users/wangmiao1981/orgs","repos_url":"https://api.github.com/users/wangmiao1981/repos","events_url":"https://api.github.com/users/wangmiao1981/events{/privacy}","received_events_url":"https://api.github.com/users/wangmiao1981/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-05-23T21:54:32Z","updated_at":"2016-05-26T10:36:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/13266","html_url":"https://github.com/apache/spark/pull/13266","diff_url":"https://github.com/apache/spark/pull/13266.diff","patch_url":"https://github.com/apache/spark/pull/13266.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\n(Please fill in changes proposed in this fix)\r\nThe Binarization scala example val dataFrame : Dataframe = spark.createDataFrame(data).toDF(\"label\", \"feature\"), which can't be pasted in the spark-shell as Dataframe is not imported. Compared with other examples, this explicit type is not required.\r\n\r\nSo I removed Dataframe in the code.\r\n## How was this patch tested?\r\n\r\n(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)\r\nManually tested \r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/221836656","html_url":"https://github.com/apache/spark/pull/13266#issuecomment-221836656","issue_url":"https://api.github.com/repos/apache/spark/issues/13266","id":221836656,"user":{"login":"MLnick","id":1036807,"avatar_url":"https://avatars.githubusercontent.com/u/1036807?v=3","gravatar_id":"","url":"https://api.github.com/users/MLnick","html_url":"https://github.com/MLnick","followers_url":"https://api.github.com/users/MLnick/followers","following_url":"https://api.github.com/users/MLnick/following{/other_user}","gists_url":"https://api.github.com/users/MLnick/gists{/gist_id}","starred_url":"https://api.github.com/users/MLnick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MLnick/subscriptions","organizations_url":"https://api.github.com/users/MLnick/orgs","repos_url":"https://api.github.com/users/MLnick/repos","events_url":"https://api.github.com/users/MLnick/events{/privacy}","received_events_url":"https://api.github.com/users/MLnick/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T10:36:43Z","updated_at":"2016-05-26T10:36:43Z","body":"LGTM, merged to master/branch-2.0. Thanks!"}}
{"actor":{"display_login":"MLnick"}}