I'm wondering if there is a faster way to do the following code, which works fine. It needs to be applied to every row of the DataFrame
class_dct contains a different NLTK
NaiveBayes classifier for each of 9 regions.
for region in regions: new_app= for title in df.booktitle: nlp_genre=class_dct['Classif_%s'% region].classify(features(title)) new_app.append((title,region,nlp_genre))