Professional Documents
Culture Documents
"cells": [
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": true,
"scrolled": true
},
"outputs": [],
"source": [
"df=pd.read_table('positive comments.txt',delimiter='\\n',header=None)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"df_tp=pd.read_table(r'../alexis_topic_modeling/input/ThinkingPinoy.txt',delim_whit
espace=True,header=None)"
]
},
{
"cell_type": "code",
"execution_count": 24,
"metadata": {
"scrolled": true
},
"outputs": [
{
"data": {
"text/plain": [
"Negative 35438\n",
"Neutral 16438\n",
"Positive 11522\n",
"Negative\\n 13\n",
"Nuetral 6\n",
"negative 4\n",
"neutral 3\n",
"NegativeNegative 2\n",
"Nutral 1\n",
" Neutral 1\n",
"p 1\n",
"NEutral 1\n",
"Negativ 1\n",
"Postive 1\n",
"n 1\n",
"positive 1\n",
"Netral 1\n",
"Negative 1\n",
"Name: Sentiment, dtype: int64"
]
},
"execution_count": 24,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df['Sentiment'][df['comment'].isin(df_tp[0].values)].value_counts()"
]
},
{
"cell_type": "code",
"execution_count": 34,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"df=pd.concat([df[df['comment'].isin(df_tp[0].values)==False],df[(df['comment'].isi
n(df_tp[0].values)==True) & (df['Sentiment']=='Positive')],\\\n",
" df[(df['comment'].isin(df_tp[0].values)==True) &
(df['Sentiment']=='Neutral')].head(11000),df[(df['comment'].isin(df_tp[0].values)==
True) & (df['Sentiment']=='Negative')].head(7500)])"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
"import numpy as np\n",
"import glob\n",
"import os\n",
"import re\n",
"from sklearn.model_selection import train_test_split\n",
"import csv\n",
"import string"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"path= r'Nov 2/input'\n",
"all_files=glob.glob(os.path.join(path,'*.csv'))\n",
"df_from_each_file=(pd.read_csv(f, encoding=\"unicode_escape\") for f in
all_files )\n",
"df = pd.concat(df_from_each_file,ignore_index=True)\n",
"# df.to_csv(r'compiled.csv', index=False)"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"df=df[df['Sentiment'].isnull()==False].reset_index(drop=True)\n",
"df=df[df['comment'].isnull()==False].reset_index(drop=True)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Sentiment 108844\n",
"comment 108844\n",
"sentiment 107903\n",
"post 108305\n",
"parent comment 23364\n",
"dtype: int64"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df.count()"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"def removeEmoji(text):\n",
" emoji_pattern = re.compile(\"[\"\n",
" u\"\\U0001F600-\\U0001F64F\" # emoticons\n",
" u\"\\U0001F300-\\U0001F5FF\" # symbols & pictographs\n",
" u\"\\U0001F680-\\U0001F6FF\" # transport & map symbols\n",
" u\"\\U0001F1E0-\\U0001F1FF\" # flags (iOS)\n",
" \"]+\", flags=re.UNICODE)\n",
" return emoji_pattern.sub(r'', text) # no emoji\n",
"\n",
"def removePunctuations(text):\n",
" text = ''.join(filter(lambda x: x in string.printable, text))\n",
"# text = text.encode(\"utf-8\")\n",
"# text = text.translate(string.maketrans(\"\",\"\"),
string.punctuation)\n",
" translator = str.maketrans(dict.fromkeys(string.punctuation))\n",
" text = text.translate(translator)\n",
" return text\n",
"#text = text.lower()\n",
"for index,row in df.iterrows():\n",
" comment=row['comment']\n",
" new_comment=removePunctuations(removeEmoji(comment)).lower()\n",
" new_comment=new_comment.replace('\\n',' ')\n",
" df.set_value(index, 'comment', new_comment)\n",
"\n",
"df=df[(df['comment'] != \"\")].reset_index(drop=True)"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"df['Sentiment'][df['Sentiment'].isnull()==False]=df['Sentiment']
[df['Sentiment'].isnull()==False].apply(lambda x: x.title())"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"scrolled": true
},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style>\n",
" .dataframe thead tr:only-child th {\n",
" text-align: right;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: left;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Sentiment</th>\n",
" <th>comment</th>\n",
" <th>sentiment</th>\n",
" <th>post</th>\n",
" <th>parent comment</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Neutral</td>\n",
" <td>paano ang ios hindi pwede</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>30</th>\n",
" <td>Neutral</td>\n",
" <td>you</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>82</th>\n",
" <td>Neutral</td>\n",
" <td>how po</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>91</th>\n",
" <td>Neutral</td>\n",
" <td>thank you</td>\n",
" <td>positive</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>103</th>\n",
" <td>Neutral</td>\n",
" <td>how</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>105</th>\n",
" <td>Neutral</td>\n",
" <td>how po</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>106</th>\n",
" <td>Neutral</td>\n",
" <td>how</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>108</th>\n",
" <td>Neutral</td>\n",
" <td>how</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>116</th>\n",
" <td>Neutral</td>\n",
" <td>how</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>117</th>\n",
" <td>Neutral</td>\n",
" <td>how sirmadam</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>119</th>\n",
" <td>Neutral</td>\n",
" <td>how pls tnx</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>128</th>\n",
" <td>Neutral</td>\n",
" <td>how po</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>137</th>\n",
" <td>Neutral</td>\n",
" <td>how</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>140</th>\n",
" <td>Neutral</td>\n",
" <td>how</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>142</th>\n",
" <td>Neutral</td>\n",
" <td>how</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>148</th>\n",
" <td>Neutral</td>\n",
" <td>how</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>153</th>\n",
" <td>Neutral</td>\n",
" <td>how</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>155</th>\n",
" <td>Neutral</td>\n",
" <td>how</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>157</th>\n",
" <td>Neutral</td>\n",
" <td>how po</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>160</th>\n",
" <td>Neutral</td>\n",
" <td>how</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>168</th>\n",
" <td>Neutral</td>\n",
" <td>how</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>178</th>\n",
" <td>Neutral</td>\n",
" <td>how</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>187</th>\n",
" <td>Neutral</td>\n",
" <td>paano po</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>189</th>\n",
" <td>Neutral</td>\n",
" <td>how po</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>190</th>\n",
" <td>Neutral</td>\n",
" <td>how po</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>215</th>\n",
" <td>Neutral</td>\n",
" <td>how to use this application</td>\n",
" <td>positive</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>227</th>\n",
" <td>Neutral</td>\n",
" <td>how po</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>231</th>\n",
" <td>Neutral</td>\n",
" <td>paano po ba</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>232</th>\n",
" <td>Neutral</td>\n",
" <td>ainah khoilarahh tinuod ni dam</td>\n",
" <td>positive</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>234</th>\n",
" <td>Neutral</td>\n",
" <td>kwt qwn ah nodle bgy ko</td>\n",
" <td>negative</td>\n",
" <td>Kung nag-join ka dati sa survey about the app ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>106305</th>\n",
" <td>Neutral</td>\n",
" <td>toinks</td>\n",
" <td>negative</td>\n",
" <td>Dahil binigyan niya tayo ng comedic gold this ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>106320</th>\n",
" <td>Neutral</td>\n",
" <td>panu na si sara d pwede senator na lang</td>\n",
" <td>positive</td>\n",
" <td>Dahil binigyan niya tayo ng comedic gold this ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>106362</th>\n",
" <td>Neutral</td>\n",
" <td>adjes bry smiley kristelle lyra gillen miguel ...</td>\n",
" <td>positive</td>\n",
" <td>Dahil binigyan niya tayo ng comedic gold this ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>106364</th>\n",
" <td>Neutral</td>\n",
" <td>iam aeb</td>\n",
" <td>negative</td>\n",
" <td>Dahil binigyan niya tayo ng comedic gold this ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>106365</th>\n",
" <td>Neutral</td>\n",
" <td>attilla abella vicencio</td>\n",
" <td>negative</td>\n",
" <td>Dahil binigyan niya tayo ng comedic gold this ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>106366</th>\n",
" <td>Neutral</td>\n",
" <td>mharcoy adezas chard fronda</td>\n",
" <td>negative</td>\n",
" <td>Dahil binigyan niya tayo ng comedic gold this ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>106367</th>\n",
" <td>Neutral</td>\n",
" <td>rivan srifa</td>\n",
" <td>negative</td>\n",
" <td>Dahil binigyan niya tayo ng comedic gold this ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>106368</th>\n",
" <td>Neutral</td>\n",
" <td>dang dang ricca joice dalit adrada</td>\n",
" <td>negative</td>\n",
" <td>Dahil binigyan niya tayo ng comedic gold this ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>106369</th>\n",
" <td>Neutral</td>\n",
" <td>maribeth ropal</td>\n",
" <td>negative</td>\n",
" <td>Dahil binigyan niya tayo ng comedic gold this ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>106370</th>\n",
" <td>Neutral</td>\n",
" <td>vinnie serna</td>\n",
" <td>negative</td>\n",
" <td>Dahil binigyan niya tayo ng comedic gold this ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>106371</th>\n",
" <td>Neutral</td>\n",
" <td>ramil reyes</td>\n",
" <td>positive</td>\n",
" <td>Dahil binigyan niya tayo ng comedic gold this ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>106372</th>\n",
" <td>Neutral</td>\n",
" <td>ito yung full interview nyan eh httpswwwyoutu...</td>\n",
" <td>negative</td>\n",
" <td>Dahil binigyan niya tayo ng comedic gold this ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>106373</th>\n",
" <td>Neutral</td>\n",
" <td>his interview with general bato httpswwwyoutu...</td>\n",
" <td>positive</td>\n",
" <td>Dahil binigyan niya tayo ng comedic gold this ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>106378</th>\n",
" <td>Neutral</td>\n",
" <td>lol</td>\n",
" <td>negative</td>\n",
" <td>Dahil binigyan niya tayo ng comedic gold this ...</td>\n",
" <td>Hoy! Thinking Pinoy!\\nPakirespeto lang si Kuya...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>106381</th>\n",
" <td>Neutral</td>\n",
" <td>ang punto ko jan mga kaibigan ang kagalanggala...</td>\n",
" <td>negative</td>\n",
" <td>Dahil binigyan niya tayo ng comedic gold this ...</td>\n",
" <td>Hoy! Thinking Pinoy!\\nPakirespeto lang si Kuya...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>106443</th>\n",
" <td>Neutral</td>\n",
" <td>edison john barreto thanks</td>\n",
" <td>positive</td>\n",
" <td>Dahil binigyan niya tayo ng comedic gold this ...</td>\n",
" <td>Hoy! Thinking Pinoy!\\nPakirespeto lang si Kuya...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>106462</th>\n",
" <td>Neutral</td>\n",
" <td>ano ba namang masama sa post na ito aysos</td>\n",
" <td>negative</td>\n",
" <td>Dahil binigyan niya tayo ng comedic gold this ...</td>\n",
" <td>Hoy! Thinking Pinoy!\\nPakirespeto lang si Kuya...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>106544</th>\n",
" <td>Neutral</td>\n",
" <td>field trip picnic</td>\n",
" <td>negative</td>\n",
" <td>Sige nga, Senator Risa Hontiveros, SPELL \"INVA...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>106766</th>\n",
" <td>Neutral</td>\n",
" <td>c risa ba yan</td>\n",
" <td>negative</td>\n",
" <td>Tancha ko e baka umeksena ng \"Bullying!\" ang i...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>107262</th>\n",
" <td>Neutral</td>\n",
" <td>bullets coming from all directions it must be ...</td>\n",
" <td>positive</td>\n",
" <td>A DIFFERENT KIND OF BAYOT\\n(via SibEx) \\n\\n“Ju...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>107469</th>\n",
" <td>Neutral</td>\n",
" <td>before we forget hows the mayor</td>\n",
" <td>positive</td>\n",
" <td>A DIFFERENT KIND OF BAYOT\\n(via SibEx) \\n\\n“Ju...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>107530</th>\n",
" <td>Neutral</td>\n",
" <td>cd no ko</td>\n",
" <td>negative</td>\n",
" <td>A DIFFERENT KIND OF BAYOT\\n(via SibEx) \\n\\n“Ju...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>107551</th>\n",
" <td>Neutral</td>\n",
" <td>broken arrow</td>\n",
" <td>negative</td>\n",
" <td>A DIFFERENT KIND OF BAYOT\\n(via SibEx) \\n\\n“Ju...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>107721</th>\n",
" <td>Neutral</td>\n",
" <td>kawikaan 18 6 ang labi ng mangmang bunga ay al...</td>\n",
" <td>negative</td>\n",
" <td>ABUTAN NG BONAMINE SI RISA! \\n\\nRazon: Ano po ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>108077</th>\n",
" <td>Neutral</td>\n",
" <td>ang nag iinterview sakanya na si kuya daniel r...</td>\n",
" <td>positive</td>\n",
" <td>ABUTAN NG BONAMINE SI RISA! \\n\\nRazon: Ano po ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>108221</th>\n",
" <td>Neutral</td>\n",
" <td>may link po ba to gusto ko ishare ung actual i...</td>\n",
" <td>negative</td>\n",
" <td>ABUTAN NG BONAMINE SI RISA! \\n\\nRazon: Ano po ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>108224</th>\n",
" <td>Neutral</td>\n",
" <td>jhen hahahaha</td>\n",
" <td>negative</td>\n",
" <td>ABUTAN NG BONAMINE SI RISA! \\n\\nRazon: Ano po ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>108389</th>\n",
" <td>Neutral</td>\n",
" <td>bwahahahshaha</td>\n",
" <td>negative</td>\n",
" <td>ABUTAN NG BONAMINE SI RISA! \\n\\nRazon: Ano po ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>108395</th>\n",
" <td>Neutral</td>\n",
" <td>httpsenwikipediaorgwikiinvasion ito ang ibig s...</td>\n",
" <td>positive</td>\n",
" <td>ABUTAN NG BONAMINE SI RISA! \\n\\nRazon: Ano po ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>108423</th>\n",
" <td>Neutral</td>\n",
" <td>can somebody explain what invasion is</td>\n",
" <td>negative</td>\n",
" <td>ABUTAN NG BONAMINE SI RISA! \\n\\nRazon: Ano po ...</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>26689 rows × 5 columns</p>\n",
"</div>"
],
"text/plain": [
" Sentiment comment
sentiment \\\n",
"1 Neutral paano ang ios hindi pwede
negative \n",
"30 Neutral you
negative \n",
"82 Neutral how po
negative \n",
"91 Neutral thank you
positive \n",
"103 Neutral how
negative \n",
"105 Neutral how po
negative \n",
"106 Neutral how
negative \n",
"108 Neutral how
negative \n",
"116 Neutral how
negative \n",
"117 Neutral how sirmadam
negative \n",
"119 Neutral how pls tnx
negative \n",
"128 Neutral how po
negative \n",
"137 Neutral how
negative \n",
"140 Neutral how
negative \n",
"142 Neutral how
negative \n",
"148 Neutral how
negative \n",
"153 Neutral how
negative \n",
"155 Neutral how
negative \n",
"157 Neutral how po
negative \n",
"160 Neutral how
negative \n",
"168 Neutral how
negative \n",
"178 Neutral how
negative \n",
"187 Neutral paano po
negative \n",
"189 Neutral how po
negative \n",
"190 Neutral how po
negative \n",
"215 Neutral how to use this application
positive \n",
"227 Neutral how po
negative \n",
"231 Neutral paano po ba
negative \n",
"232 Neutral ainah khoilarahh tinuod ni dam
positive \n",
"234 Neutral kwt qwn ah nodle bgy ko
negative \n",