I would like create lambda which be will give me 3 results if greater than 0.3 is positive if between 0.3 to -0.3 neutral less than 0.3 below
df['sentiment_rat2'] = df['sentiment'].apply(lambda sentiment: 'positiv' if sentiment.polarity >= 0.3 else 'neutral' <= 0.3 sentiment.polarity =< -0.3 else 'negative')
df['sentiment_rat2'] = df['sentiment'].apply(lambda sentiment: 'positiv' if sentiment.polarity >= 0.3 if 'neutral' <= 0.3 sentiment.polarity =< -0.3 else 'negative')
Nothing is work, im beginner with that ! May please for help