You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This function allows visualizing the frequency of occurrence of words and n-grams (sets of a number of consecutive words) based on the target variable.
53
+
54
+
Parameters:
55
+
- df: Dataframe with a text variable.
56
+
- target: Column of the dataframe where the target variable is located.
57
+
- text: Column of the dataframe where the text is located.
58
+
- n_gram: Number of consecutive words whose frequency we want to visualize.
59
+
60
+
Returns:
61
+
- Bar chart representing the frequency of words, sorted from highest to lowest, divided by target variable.
0 commit comments