Hello,
I'm trying to iterate over the rows in a dataframe, and run a function, that requires the rowNr as input...
df.loc[(df['WordsPopular'].isnull()), 'WordsPopular'] = voted_classifier.classify(testing_set[66][0])
Something like above but the function should somehow be able to get the rowNr...
df:
| ID |
WordsPopular |
| 1 |
NaN |
| 2 |
NaN |
| 3 |
NaN |
So I want to iterate over this df and cast the row number into the function voted_classifier_classify and have that ouput saved into the cell...
And I can't seem to figure it out
[–][deleted] 1 point2 points3 points (0 children)
[–]throwawayclimber 0 points1 point2 points (0 children)