{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/5024","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/5024/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/5024/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/5024/events","html_url":"https://github.com/tensorflow/tensorflow/pull/5024","id":183568717,"number":5024,"title":"Fixed error with NaN elements","user":{"login":"fabriciojoc","id":10869430,"avatar_url":"https://avatars.githubusercontent.com/u/10869430?v=3","gravatar_id":"","url":"https://api.github.com/users/fabriciojoc","html_url":"https://github.com/fabriciojoc","followers_url":"https://api.github.com/users/fabriciojoc/followers","following_url":"https://api.github.com/users/fabriciojoc/following{/other_user}","gists_url":"https://api.github.com/users/fabriciojoc/gists{/gist_id}","starred_url":"https://api.github.com/users/fabriciojoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabriciojoc/subscriptions","organizations_url":"https://api.github.com/users/fabriciojoc/orgs","repos_url":"https://api.github.com/users/fabriciojoc/repos","events_url":"https://api.github.com/users/fabriciojoc/events{/privacy}","received_events_url":"https://api.github.com/users/fabriciojoc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/cla:%20no","name":"cla: no","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-18T01:31:06Z","updated_at":"2016-10-18T01:31:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/5024","html_url":"https://github.com/tensorflow/tensorflow/pull/5024","diff_url":"https://github.com/tensorflow/tensorflow/pull/5024.diff","patch_url":"https://github.com/tensorflow/tensorflow/pull/5024.patch"},"body":"There were an error after reading the dataset, looks like the last line (of the dataset) contains NaN values, giving an error when converting to integer (to generate the labels):\r\n> Traceback (most recent call last):\r\n>   File \"tensorflow/examples/learn/wide_n_deep_tutorial.py\", line 203, in <module>\r\n>     tf.app.run()\r\n>   File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py\", line 30, in run\r\n>     sys.exit(main(sys.argv[:1] + flags_passthrough))\r\n>   File \"tensorflow/examples/learn/wide_n_deep_tutorial.py\", line 199, in main\r\n>     train_and_eval()\r\n>   File \"tensorflow/examples/learn/wide_n_deep_tutorial.py\", line 184, in train_and_eval\r\n>     df_train[\"income_bracket\"].apply(lambda x: \">50K\" in x)).astype(int)\r\n>   File \"/usr/lib/python2.7/dist-packages/pandas/core/series.py\", line 2023, in apply\r\n>     mapped = lib.map_infer(values, f, convert=convert_dtype)\r\n>   File \"inference.pyx\", line 920, in pandas.lib.map_infer (pandas/lib.c:44780)\r\n>   File \"tensorflow/examples/learn/wide_n_deep_tutorial.py\", line 184, in <lambda>\r\n>     df_train[\"income_bracket\"].apply(lambda x: \">50K\" in x)).astype(int)\r\n> TypeError: argument of type 'NoneType' is not iterable\r\n> \r\n\r\nThis was fixed droping every line that contains NaN elements:\r\n\r\n>   # remove NaN elements\r\n>   df_train = df_train.dropna(how='any', axis=0)\r\n>   df_test = df_test.dropna(how='any', axis=0)"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/254381943","html_url":"https://github.com/tensorflow/tensorflow/pull/5024#issuecomment-254381943","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/5024","id":254381943,"user":{"login":"googlebot","id":5384588,"avatar_url":"https://avatars.githubusercontent.com/u/5384588?v=3","gravatar_id":"","url":"https://api.github.com/users/googlebot","html_url":"https://github.com/googlebot","followers_url":"https://api.github.com/users/googlebot/followers","following_url":"https://api.github.com/users/googlebot/following{/other_user}","gists_url":"https://api.github.com/users/googlebot/gists{/gist_id}","starred_url":"https://api.github.com/users/googlebot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googlebot/subscriptions","organizations_url":"https://api.github.com/users/googlebot/orgs","repos_url":"https://api.github.com/users/googlebot/repos","events_url":"https://api.github.com/users/googlebot/events{/privacy}","received_events_url":"https://api.github.com/users/googlebot/received_events","type":"User","site_admin":false},"created_at":"2016-10-18T01:31:08Z","updated_at":"2016-10-18T01:31:08Z","body":"Thanks for your pull request.  It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).\n\n:memo: **Please visit <https://cla.developers.google.com/> to sign.**\n\nOnce you've signed, please reply here (e.g. `I signed it!`) and we'll verify.  Thanks.\n\n---\n\n- If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address.  Check [your existing CLA data](https://cla.developers.google.com/clas) and verify that your [email is set on your git commits](https://help.github.com/articles/setting-your-email-in-git/).\n- If you signed the CLA as a corporation, please let us know the company's name.\n\n<!-- need_sender_cla -->"}}
{"actor":{"display_login":"googlebot"}}