{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/4025","labels_url":"https://api.github.com/repos/apache/spark/issues/4025/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/4025/comments","events_url":"https://api.github.com/repos/apache/spark/issues/4025/events","html_url":"https://github.com/apache/spark/pull/4025","id":54235875,"number":4025,"title":"[SPARK-2909] [MLlib] [PySpark] SparseVector in pyspark now supports indexing","user":{"login":"MechCoder","id":1867024,"avatar_url":"https://avatars.githubusercontent.com/u/1867024?v=3","gravatar_id":"","url":"https://api.github.com/users/MechCoder","html_url":"https://github.com/MechCoder","followers_url":"https://api.github.com/users/MechCoder/followers","following_url":"https://api.github.com/users/MechCoder/following{/other_user}","gists_url":"https://api.github.com/users/MechCoder/gists{/gist_id}","starred_url":"https://api.github.com/users/MechCoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MechCoder/subscriptions","organizations_url":"https://api.github.com/users/MechCoder/orgs","repos_url":"https://api.github.com/users/MechCoder/repos","events_url":"https://api.github.com/users/MechCoder/events{/privacy}","received_events_url":"https://api.github.com/users/MechCoder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-13T19:24:39Z","updated_at":"2015-01-14T02:49:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/4025","html_url":"https://github.com/apache/spark/pull/4025","diff_url":"https://github.com/apache/spark/pull/4025.diff","patch_url":"https://github.com/apache/spark/pull/4025.patch"},"body":"Slightly different than the scala code which converts the sparsevector into a densevector and then checks the index.\r\n\r\nI also hope I've added tests in the right place.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/69861283","html_url":"https://github.com/apache/spark/pull/4025#issuecomment-69861283","issue_url":"https://api.github.com/repos/apache/spark/issues/4025","id":69861283,"user":{"login":"MechCoder","id":1867024,"avatar_url":"https://avatars.githubusercontent.com/u/1867024?v=3","gravatar_id":"","url":"https://api.github.com/users/MechCoder","html_url":"https://github.com/MechCoder","followers_url":"https://api.github.com/users/MechCoder/followers","following_url":"https://api.github.com/users/MechCoder/following{/other_user}","gists_url":"https://api.github.com/users/MechCoder/gists{/gist_id}","starred_url":"https://api.github.com/users/MechCoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MechCoder/subscriptions","organizations_url":"https://api.github.com/users/MechCoder/orgs","repos_url":"https://api.github.com/users/MechCoder/repos","events_url":"https://api.github.com/users/MechCoder/events{/privacy}","received_events_url":"https://api.github.com/users/MechCoder/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T02:49:32Z","updated_at":"2015-01-14T02:49:32Z","body":"@mengxr I've fixed up your comments. Btw, should we use a similar logic for the scala code? Right now it seems to convert it into a dense vector, which I'm not sure is advisable."}}