python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Running a for loop or .apply with a pandas series
I'm trying to run a for loop or .apply using lambdas for my pandas series. Here's the code:
df['sentiment_score'] = df.apply(lambda x: analyzer.polarity_scores(x['Filtered_text']), axis=1)
What I'm t...
cchev
Votes: 0
Answers: 1
How to Capitalize Locations in a List Python
I am using NLTK lib in python to break down each word into tagged elements (i.e. ('London', ''NNP)). However, I cannot figure out how to take this list, and capitalise locations if they are lower case...
user17976264
Votes: 0
Answers: 1
Total Frequency Count for words using NLTK Python
While testing a standard way of written code to count the total frequency of words in a sentence (counting number of times the same word appears), using the NLTK with Python, i am getting no result, t...
Calculate
Votes: 0
Answers: 1
How does stopwords.words('english') work here?
I have used two different data sets to train as I mentioned on both examples
x_train = ['This !was awesome movie',
'It is Wonderful movie',
'Yeah it is bad movie @',
'...

user12435269
Votes: 0
Answers: 1