pysentimentanalyzer.sentiment_score_plot¶
Module Contents¶
Functions¶
|
Creates a binned histogram showing count of reviews |
- pysentimentanalyzer.sentiment_score_plot.sentiment_score_plot(df, col)[source]¶
Creates a binned histogram showing count of reviews ranging from negative to positive sentiment score.
Provides the most frequent sentiment score and the corresponding percentage
- Parameters:
df (Pandas DataFrame) – DataFrame containing the reviews
col (String) – Name of the column that contains the reviews
- Returns:
A plot object
- Return type:
Plot
Examples
>>> plot = sentiment_score_plot(df, "column_name") >>> plt.show()