We help IT Professionals succeed at work.

Issue adding a definition to a class not being recogizied

Jordan_WM
Jordan_WM asked
on
I am trying to add a new def to an existing class but whenever I do I get the following issue

AttributeError: tfidf instance has no attribute 'wordCount'

Any help would be appreciated I am new with Python

LJ
Comment
Watch Question

Try adding self as the first argument. For example:
def mymethod(self, 

Open in new window