{"action":"opened","issue":{"url":"https://api.github.com/repos/sbenthall/bigbang/issues/247","repository_url":"https://api.github.com/repos/sbenthall/bigbang","labels_url":"https://api.github.com/repos/sbenthall/bigbang/issues/247/labels{/name}","comments_url":"https://api.github.com/repos/sbenthall/bigbang/issues/247/comments","events_url":"https://api.github.com/repos/sbenthall/bigbang/issues/247/events","html_url":"https://github.com/sbenthall/bigbang/issues/247","id":154681865,"number":247,"title":"Example Notebook Special Words Analysis","user":{"login":"nllz","id":4548727,"avatar_url":"https://avatars.githubusercontent.com/u/4548727?v=3","gravatar_id":"","url":"https://api.github.com/users/nllz","html_url":"https://github.com/nllz","followers_url":"https://api.github.com/users/nllz/followers","following_url":"https://api.github.com/users/nllz/following{/other_user}","gists_url":"https://api.github.com/users/nllz/gists{/gist_id}","starred_url":"https://api.github.com/users/nllz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nllz/subscriptions","organizations_url":"https://api.github.com/users/nllz/orgs","repos_url":"https://api.github.com/users/nllz/repos","events_url":"https://api.github.com/users/nllz/events{/privacy}","received_events_url":"https://api.github.com/users/nllz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-13T10:30:07Z","updated_at":"2016-05-13T10:30:07Z","closed_at":null,"body":"When I run:\r\n\r\n```\r\n#First list\r\nwordcount={}\r\nfor row in archives[0].data.iterrows():\r\n    w = row[1][\"Body\"].replace(\"'\", \"\")\r\n    k = re.sub(r'[^\\w]', ' ', w)\r\n    t = nltk.tokenize.word_tokenize(k)\r\n    for g in t:\r\n        try:\r\n            word = st.stem(g)\r\n        except:\r\n            print g\r\n            pass\r\n        if word in stopwords.words('english'):\r\n            continue\r\n        if word not in wordcount:\r\n            wordcount[word] = [1]\r\n            wordcount[word].append(row[0])\r\n            wordcount[word].append(row[1][\"Date\"])\r\n            wordcount[word].append(row[1][\"From\"])\r\n            wordcount[word].append(row[1][\"In-Reply-To\"])\r\n        else:\r\n            wordcount[word][0] += 1\r\nwd = wordcount #In case\r\n```\r\n\r\nI get:\r\n\r\nAttributeError                            Traceback (most recent call last)\r\n<ipython-input-36-783937edc545> in <module>()\r\n      2 wordcount={}\r\n      3 for row in archives[0].data.iterrows():\r\n----> 4     w = row[1][\"Body\"].replace(\"'\", \"\")\r\n      5     k = re.sub(r'[^\\w]', ' ', w)\r\n      6     t = nltk.tokenize.word_tokenize(k)\r\n\r\nAttributeError: 'NoneType' object has no attribute 'replace'\r\n"}}