diff --git a/.ipynb_checkpoints/Sentiment compare-checkpoint.ipynb b/.ipynb_checkpoints/Sentiment compare-checkpoint.ipynb new file mode 100644 index 0000000..3488b02 --- /dev/null +++ b/.ipynb_checkpoints/Sentiment compare-checkpoint.ipynb @@ -0,0 +1,1018 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 77, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 387 + }, + "colab_type": "code", + "id": "nMx2UqrJFyw-", + "outputId": "2a1da4e3-31d4-401f-f6b0-9f693ad8d9a6" + }, + "outputs": [], + "source": [ + "# !pip install pandas\n", + "# !pip install tweepy\n", + "# !pip install vaderSentiment\n", + "# !pip install tweepy\n", + "# !pip install PyHamcrest\n", + "# !pip install twython" + ] + }, + { + "cell_type": "code", + "execution_count": 81, + "metadata": { + "colab": {}, + "colab_type": "code", + "id": "VldzdttbGRT6" + }, + "outputs": [], + "source": [ + "import tweepy\n", + "import pandas as pd\n", + "from nltk.sentiment.vader import SentimentIntensityAnalyzer\n", + "import matplotlib.pyplot as plt\n", + "import numpy as np\n", + "import ast" + ] + }, + { + "cell_type": "code", + "execution_count": 82, + "metadata": { + "colab": {}, + "colab_type": "code", + "id": "xoeDu5guGo-N" + }, + "outputs": [], + "source": [ + "#My Twitter API Authentication Variables\n", + "consumer_key = ''\n", + "consumer_secret = ''\n", + "access_token = ''\n", + "access_token_secret = ''" + ] + }, + { + "cell_type": "code", + "execution_count": 91, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 376 + }, + "colab_type": "code", + "id": "i41rn4KkG-iz", + "outputId": "0243083f-626d-4df7-e974-f51e1e9d7790" + }, + "outputs": [], + "source": [ + "auth = tweepy.OAuthHandler(consumer_key, consumer_secret)\n", + "auth.set_access_token(access_token, access_token_secret)\n", + "\n", + "api = tweepy.API(auth)\n", + "\n", + "targets = [\"hp\", \"apple\", \"microsoft\", \"asus\"]\n", + "results = []\n", + "number_of_tweets = 200\n", + "\n", + "for item in targets:\n", + " results.append(api.search(item, count=number_of_tweets))" + ] + }, + { + "cell_type": "code", + "execution_count": 92, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "90\n" + ] + } + ], + "source": [ + "shortest_list = min((len(x) for x in results))\n", + "print(shortest_list)" + ] + }, + { + "cell_type": "code", + "execution_count": 93, + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
hpapplemicrosoftasus
0RT @talesof_therays: 【お知らせ】\\nこんばんは。運営です。\\n続けてコ...Apple CarPlay: Display im Auto konfigurieren h...RT @MSEurope: Great opportunity to know more a...Asus Dual-Band 802.11ac WiFi Router for $40 + ...
1RT @torasan_movie: 【号泣嗚咽応援上映】の開催が決定しました🐱\\n\\n皆様...RT @layzhang: I caught up with @travismills on...RT @WhiteBit6: Microsoft Wants to Help Make Yo...【徵求】\\n雲林 斗南\\nASUS筆電充電器 19V\\n借用到3/1
2RT @Granblue_GW: ◆2年生チーム最終性能まとめ\\n最終後\\n・奥義演出が豪華...➜Yuuko Hirose -WIND- https://t.co/WlTPeZ2EZj #...RT @mtholfsen: Ready to get started with @Micr...アメブロを更新しました。 『世界のPC大手、台湾のASUS、スマートフォン「ZenFone6...
3RT @kfyyh0927: インディ開幕まで あと 10日 じゃ!! (写真:佐藤琢磨公式...RT @layzhang: I caught up with @travismills on...@Tessa_824 really out here using Microsoft wor...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
4280. 이시다 아유미, 사야시 리호 https://t.co/PHzacskbpzRT @yaruki_arimi: \Podcastの最新話でたよ!/\\n\\n今週は「親友の...@GarethBrown @ThomasMaurer That’s correct - ht...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
5🇺🇸ミッキーのオムツケーキは大人気です👶🎉\\n.\\n男の子の出産祝いにどうぞ😊✨ https...RT @layzhang: I caught up with @travismills on...THQ doing that AMA was dumb, but people from M...世界のPC大手、台湾のASUS、スマートフォン「ZenFone6」を発表? https://...
6RT @Granblue_GW: ◆2年生チーム最終性能まとめ\\n最終後\\n・奥義演出が豪華...RT @green_tea_niji: 声優 陶山恵実里さんが歌う\\nリフレクトムーンの新曲...RT @Xbox: Seven historic cars, seventy thousan...ASUS Zenfone 5 Lite - Rouge\\n\\nASUS Zenfone 5 ...
7Que peligro tan hp, no sabía q los médicos ten...RT @layzhang: I caught up with @travismills on...RT @Bright: Getest: de #Hololens2 die je hand-...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
8RT @Suharno41747558: HARNO BADUT: menyewakan,...RT @TaylorMadeGolf: Special guest @NiallOffici...RT @nullenc0de: Looks like I was only scraping...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
9RT @Granblue_GW: ◆2年生チーム最終性能まとめ\\n最終後\\n・奥義演出が豪華...RT @layzhang: I caught up with @travismills on...RT @Xbox: The Season of the Dragon is upon us,...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
10@EhhItsOk @KylePlantEmoji That's 1 hp per step...RT @colopl_dreaming: 💿ゆめライブCD情報💿\\n\\n3ndシングル「Ma...RT @Siber_Bulten: Microsoft’un ABD ordusuyla y...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
11RT @mashio_fuguta: 【譲渡/お譲り】【拡散希望】\\n2019年3月23日(...RT @EDinarWorldwide: 🔺 Apple Taps Blockchain t...Sadarbībā ar @RigaTechGirls 6. martā, Microsof...@togihara 動画だけで熱持ちますよ。。。(Nexus7のほうがマシレベルっす)\\n↓...
12@hp_hp25 闇が深い!?RT @layzhang: I caught up with @travismills on...RT @diegompc: Telefónica convierte a Microsoft...@Chiseldrs HAHAHA😂😂😂 asus
13RT @Suharno41747558: HARNO BADUT: menyewakan,...<silently eats an apple>RT @nypost: Microsoft employees demand company...@ASUS_ROG_FR @lecomptoir Vous devriez faire ju...
14RT @Vampiroperver: 🔴🔴🔴🔴🤣🤣🤣En Cadena Internacio...RT @nutpinenutpine: [애플 공홈에서 아이맥을 구입했는데 중고가 배송...The application of @HoloLens in the health sec...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
15RT @toukenmovie2019: 【応援上映】3月に入ってからも応援上映が続きます!...RT @Dominikow_: Por algum acaso o orixá pra qu...Microsoft's answer to Chromebooks may be 'Lite...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
16RT @Suharno41747558: HARNO BADUT: menyewakan,...@solodallamente @FjonaCakalli vabbè cosa c’ent...RT @ArvinK: @shaun_riordan @APPSPolicyForum @O...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
17RT @Granblue_GW: ◆2年生チーム最終性能まとめ\\n最終後\\n・奥義演出が豪華...Is Spotify really that much better than Apple ...Microsoft’un ABD ordusuyla yaptığı anlaşma çal...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
18Ujung2ny cm main hp ntn film buka ig wa line b...RT @layzhang: I caught up with @travismills on...ExxonMobil leading the energy sector with its ...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
19RT @FujifilmJP_sp: 教室を思い出写真でいっぱいに。\\n#教室アルバム アイ...RT @layzhang: I caught up with @travismills on...@Rangor Hehe, well on the contrary, most of th...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
20RT @toukenmovie2019: 【応援上映】3月に入ってからも応援上映が続きます!...RT @qikipedia: One of the alert sounds on Mac ...Discover ways to extend your on-premises IT of...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
21RT @HP_gurume: \フォロー&リツイートで応募完了/\\nウコンドリンク5本が4名...RT @layzhang: I caught up with @travismills on...Students can build apps bots and AI using Micr...Polewali kurang apalagi sdh ada pusat IT dan s...
22気になってスキルマにしたけど毎ターン3000もHP増えて草Zuckerberg reportedly told Facebook execs to u...RT @MenzoFN: 🤑VOICI MON SHOP🤑\\nLes différents ...RT @Okama_Sorteos: #SORTEO RTX 2060\\n\\n1️⃣ RT\\...
23RT @oro1_: アイスリンク仙台HP NEW OPEN✨\\nhttps://t.co/...RT @sommy_mufc: I just received a notification...RT @Xbox: Unmask the newest DLC and play as Ob...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
24RT @AlbaniaOC: #PaseDeLista \"NO QUEREMOS TERMI...@apple_nasty Считаю, что мастера должны давать...Ab Version 1.51 kann Microsoft ToDo mit mehrer...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
25RT @KanaNakanishi: https://t.co/zLnPfc9g5QRT @layzhang: I caught up with @travismills on...Ergebnis des Schultages: Der Unterschied zwisc...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
26RT @talesof_therays: 【お知らせ】\\nこんばんは。運営です。\\n続けてコ...For those who want to look more of chump than ...RT @WSJ: Opinion: The integrity of U.S. defens...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
27@suspiciousbees +10 hpRT @Beats1: China's @layzhang is on with @trav...Capital Investment Services Of America Decreas...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
28RT @toukenmovie2019: 【応援上映】3月に入ってからも応援上映が続きます!...RT @layzhang: I caught up with @travismills on...RT @avgorkemgokce: Dünyanın en itibarlı markal...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
29RT @talesof_therays: 【お知らせ】\\nこんばんは。運営です。\\n続けてコ...https://t.co/6G4y8w9WeYJe m'éclate sur #CSRRacing pour Windows, tu vi...Asus presenta il nuovo GS30 https://t.co/7AXI...
...............
60@suama2001 ご参加ありがとうございます!!\\n抽選結果はムービーをご覧ください!\\...RT @nutpinenutpine: [애플 공홈에서 아이맥을 구입했는데 중고가 배송...RT @kitgurupress: We’ll be seeing Microsoft’s ...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
61@mondo1959 鵜飼さんこんばんわ!元気になられたようで何よりです😂でもご無理なさらぬ...RT @layzhang: I caught up with @travismills on...RT @hirax: 紙の「新聞」を読んで面白かった一節。(MicrosoftのHolole...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
62RT @HP_gurume: \フォロー&RTで応募/\\n✨ゴー☆ジャスが宴会にきてくれる✨...https://t.co/RZ8fWLv3o9RT @NITE2MU: ระบบ Hololens ที่พัฒนาโดย Microso...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
63お知らせです。\\n現在我龍のHP稼働停止しています。再稼働に向け取り組んでいますが、しばらく...RT @nutpinenutpine: [애플 공홈에서 아이맥을 구입했는데 중고가 배송...RT @spectatorindex: Most prestigious internshi...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
64RT @torasan_movie: 【号泣嗚咽応援上映】の開催が決定しました🐱\\n\\n皆様...RT @layzhang: I caught up with @travismills on...@lelangacc_erpe zap integromat, ada baru pake ...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
65RT @metao002: キングプロテア、HP4万近くまで上がるの草 https://t....@SHERIA_KKK Apple Watch Series 2!NIKE +が欲しいです!RT @maryjofoley: Windows Server IoT 2019 joins...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
66RT @Larissacostas: En el continente africano h...@Apple_rmy46 中日が3位かHow building robots together is opening doors ...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
67RT @mononokean_tv: 【場面写】\\n公式HPにて第9話のあらすじを公開中☆\\...RT @layzhang: I caught up with @travismills on...Microsoft reportedly exploring new partnership...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
68RT @pfeasy: レベル15のプロテアHP4653でスキル1の無限増殖Lv5を発動させ...The latest #SoccerPM podcast is available now!...From retailers to automotive manufacturers, le...A budget friendly smartphone made for you. Cal...
69RT @appmediafgo: 【プロテアの増殖について】\\n①スキルで毎ターン[増殖]状...RT @UnicornWal: 🎁 #GIVEAWAY : REMPORTE UN SWEA...RT @KYK_Sakarya: Muhammed Fatih Safitürk Yurdu...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
70RT @PartaiSocmed: Bagi teman2 yg belum sempat ...@gowonthecreator i think you really have to se...We’ll be seeing Microsoft’s PC gaming improvem...Which one do I buy? 🤔 the Asus has height adju...
71@tomotan999 ありがとうでーす!☺️🎶\\nさわやか是非一度は行ってみてくださいー!...RT @layzhang: I caught up with @travismills on...@ireaderinokun In 2017 i attended a Microsoft ...RT @DINOMARKET: Cuma mau kasih tau Asus Zenfon...
72RT @appmediafgo: 【プロテアの増殖について】\\n①スキルで毎ターン[増殖]状...RT @layzhang: I caught up with @travismills on...\"Microsoft and VMware are working on a partner...RT @CMG_eSports: Setup in need of an upgrade? ...
73RT @6hisui0: 記録更新キタ━━━━(゚∀゚)━━━━!! https://t.c...Descubren el reto mensual para el Día de la Mu...https://t.co/7ARNvgg46f Philips showcases uniq...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
74@okimotoaona あけとくか🤦‍♀️RT @arianaonchart: .@ArianaGrande's \"7 rings\" ...Announcing Azure Integration Service Environme...#ASUS #ZenFone now supported #architectural ht...
75Produk ECO RACING dan Peluang usahanya :\\n\\nht...If you are an Athlete and you think your highl...Todos los contenidos de Halo Reach, gratis en ...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
76RT @mayla_classic: ■ ノベルティ ■\\n\\n今しか手に入らない\\nマイラ...RT @qikipedia: One of the alert sounds on Mac ...Become MCSD Certified: Advantages of Passing Y...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
77RT @appmediafgo: 【プロテアの増殖について】\\n①スキルで毎ターン[増殖]状...RT @autaApp: Do you need your refrigerator, st...Get started with Microsoft 365 Business #busin...@derpingard but Lyra then you totally cannot u...
78.@BlackGirlsCode will inspire the next generat...RT @CyberDyne__lnc: 🖥懸賞&プレゼントキャンペーン📱\\n\\n『Apple...Microsoft giving us Jedi Academy and Republic ...@yourguymat Asus.... amooor\\n\\nhttps://t.co/x4...
79せっかく観音1スキでチマチマとHP削って、あと1、2発って\\n所でタワー下へ逃げ込む太白を、...RT @nutpinenutpine: [애플 공홈에서 아이맥을 구입했는데 중고가 배송...RT @ahmedjr_16: 35 Best #IT Training & #Ce...RT @DeanAzman_: Aku nak amek course computer e...
80RT @talesof_therays: 【お知らせ】\\nこんばんは。運営です。\\n続けてコ...Chris Williamson: Tom Watson demands Labour su...RT @imcdnzl: The pitching process is broken - ...RT @CMG_eSports: Setup in need of an upgrade? ...
81普段数値順とか見ないから気づかんかったけど、ATK順だと上40は☆5なのにHP順で上20に入...RT @bungosd_anime: 【INFO】3/13(水)から全国の一部郵便局にて「文...RT @VWGroup_DE: Nur noch zwei Stunden bis zum ...https://t.co/uHkFFhBxO3 ASUS ROG Strix RTX 208...
82RT @Granblue_GW: ◆2年生チーム最終性能まとめ\\n最終後\\n・奥義演出が豪華...جمعت 190 نجمة في لعبة #كلمات_متقاطعة\\nاندرويد ...#EnterpriseResourcePlanning, a business manage...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
83カンストダメ(三枚目はHPダメージアップ無しの数値) https://t.co/GkcndJ...RT @layzhang: I caught up with @travismills on...RT @TomoboxHQ: We're going live! Tomorrow at 8...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
84RT @HP_gurume: \フォロー&リツイートで応募完了/\\nウコンドリンク5本が4名...ほんまええ曲やな https://t.co/ci4hvoaGxIAko lang naman yung taga next sa microsoft , l...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
85RT @DQ_BUILDERS2: DQビルダーズ2の追加DLC第1弾「和風パック」の詳細内...I’m in love I’m in love with a girl that body ...Menlo Advisors Holding in Microsoft $MSFT Has ...@ASUS_ZenBlog コレクションに欲しいけど実用にはキツそう!
86RT @torasan_movie: 【号泣嗚咽応援上映】の開催が決定しました🐱\\n\\n皆様...#socialmedia Apple : des abonnements à des tar...В Microsoft, предположительно, работают над во...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
87RT @appmediafgo: 【プロテアの増殖について】\\n①スキルで毎ターン[増殖]状...RT @layzhang: I caught up with @travismills on...RT @ben_mwong: ตามเรื่อง #พรบไซเบอร์ แล้วลองมา...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
88@blackluw3 今はちょっと食べる気力すらないですね…╭(›´ω`‹ )╮\\nでも何と...RT @Edinarcoin_ID: 🔺 Apple Taps Blockchain unt...Our Microsoft Project Level 2 course will buil...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
89RT @talesof_therays: 【お知らせ】\\nこんばんは。運営です。\\n続けてコ...RT @maaku_p17n: 「アポリアを穿つ」の配信が、各配信サイト(iTunesやAp...Instantly restore your Azure Virtual Machines ...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
\n", + "

90 rows × 4 columns

\n", + "
" + ], + "text/plain": [ + " hp \\\n", + "0 RT @talesof_therays: 【お知らせ】\\nこんばんは。運営です。\\n続けてコ... \n", + "1 RT @torasan_movie: 【号泣嗚咽応援上映】の開催が決定しました🐱\\n\\n皆様... \n", + "2 RT @Granblue_GW: ◆2年生チーム最終性能まとめ\\n最終後\\n・奥義演出が豪華... \n", + "3 RT @kfyyh0927: インディ開幕まで あと 10日 じゃ!! (写真:佐藤琢磨公式... \n", + "4 280. 이시다 아유미, 사야시 리호 https://t.co/PHzacskbpz \n", + "5 🇺🇸ミッキーのオムツケーキは大人気です👶🎉\\n.\\n男の子の出産祝いにどうぞ😊✨ https... \n", + "6 RT @Granblue_GW: ◆2年生チーム最終性能まとめ\\n最終後\\n・奥義演出が豪華... \n", + "7 Que peligro tan hp, no sabía q los médicos ten... \n", + "8 RT @Suharno41747558: HARNO BADUT: menyewakan,... \n", + "9 RT @Granblue_GW: ◆2年生チーム最終性能まとめ\\n最終後\\n・奥義演出が豪華... \n", + "10 @EhhItsOk @KylePlantEmoji That's 1 hp per step... \n", + "11 RT @mashio_fuguta: 【譲渡/お譲り】【拡散希望】\\n2019年3月23日(... \n", + "12 @hp_hp25 闇が深い!? \n", + "13 RT @Suharno41747558: HARNO BADUT: menyewakan,... \n", + "14 RT @Vampiroperver: 🔴🔴🔴🔴🤣🤣🤣En Cadena Internacio... \n", + "15 RT @toukenmovie2019: 【応援上映】3月に入ってからも応援上映が続きます!... \n", + "16 RT @Suharno41747558: HARNO BADUT: menyewakan,... \n", + "17 RT @Granblue_GW: ◆2年生チーム最終性能まとめ\\n最終後\\n・奥義演出が豪華... \n", + "18 Ujung2ny cm main hp ntn film buka ig wa line b... \n", + "19 RT @FujifilmJP_sp: 教室を思い出写真でいっぱいに。\\n#教室アルバム アイ... \n", + "20 RT @toukenmovie2019: 【応援上映】3月に入ってからも応援上映が続きます!... \n", + "21 RT @HP_gurume: \フォロー&リツイートで応募完了/\\nウコンドリンク5本が4名... \n", + "22 気になってスキルマにしたけど毎ターン3000もHP増えて草 \n", + "23 RT @oro1_: アイスリンク仙台HP NEW OPEN✨\\nhttps://t.co/... \n", + "24 RT @AlbaniaOC: #PaseDeLista \"NO QUEREMOS TERMI... \n", + "25 RT @KanaNakanishi: https://t.co/zLnPfc9g5Q \n", + "26 RT @talesof_therays: 【お知らせ】\\nこんばんは。運営です。\\n続けてコ... \n", + "27 @suspiciousbees +10 hp \n", + "28 RT @toukenmovie2019: 【応援上映】3月に入ってからも応援上映が続きます!... \n", + "29 RT @talesof_therays: 【お知らせ】\\nこんばんは。運営です。\\n続けてコ... \n", + ".. ... \n", + "60 @suama2001 ご参加ありがとうございます!!\\n抽選結果はムービーをご覧ください!\\... \n", + "61 @mondo1959 鵜飼さんこんばんわ!元気になられたようで何よりです😂でもご無理なさらぬ... \n", + "62 RT @HP_gurume: \フォロー&RTで応募/\\n✨ゴー☆ジャスが宴会にきてくれる✨... \n", + "63 お知らせです。\\n現在我龍のHP稼働停止しています。再稼働に向け取り組んでいますが、しばらく... \n", + "64 RT @torasan_movie: 【号泣嗚咽応援上映】の開催が決定しました🐱\\n\\n皆様... \n", + "65 RT @metao002: キングプロテア、HP4万近くまで上がるの草 https://t.... \n", + "66 RT @Larissacostas: En el continente africano h... \n", + "67 RT @mononokean_tv: 【場面写】\\n公式HPにて第9話のあらすじを公開中☆\\... \n", + "68 RT @pfeasy: レベル15のプロテアHP4653でスキル1の無限増殖Lv5を発動させ... \n", + "69 RT @appmediafgo: 【プロテアの増殖について】\\n①スキルで毎ターン[増殖]状... \n", + "70 RT @PartaiSocmed: Bagi teman2 yg belum sempat ... \n", + "71 @tomotan999 ありがとうでーす!☺️🎶\\nさわやか是非一度は行ってみてくださいー!... \n", + "72 RT @appmediafgo: 【プロテアの増殖について】\\n①スキルで毎ターン[増殖]状... \n", + "73 RT @6hisui0: 記録更新キタ━━━━(゚∀゚)━━━━!! https://t.c... \n", + "74 @okimotoaona あけとくか🤦‍♀️ \n", + "75 Produk ECO RACING dan Peluang usahanya :\\n\\nht... \n", + "76 RT @mayla_classic: ■ ノベルティ ■\\n\\n今しか手に入らない\\nマイラ... \n", + "77 RT @appmediafgo: 【プロテアの増殖について】\\n①スキルで毎ターン[増殖]状... \n", + "78 .@BlackGirlsCode will inspire the next generat... \n", + "79 せっかく観音1スキでチマチマとHP削って、あと1、2発って\\n所でタワー下へ逃げ込む太白を、... \n", + "80 RT @talesof_therays: 【お知らせ】\\nこんばんは。運営です。\\n続けてコ... \n", + "81 普段数値順とか見ないから気づかんかったけど、ATK順だと上40は☆5なのにHP順で上20に入... \n", + "82 RT @Granblue_GW: ◆2年生チーム最終性能まとめ\\n最終後\\n・奥義演出が豪華... \n", + "83 カンストダメ(三枚目はHPダメージアップ無しの数値) https://t.co/GkcndJ... \n", + "84 RT @HP_gurume: \フォロー&リツイートで応募完了/\\nウコンドリンク5本が4名... \n", + "85 RT @DQ_BUILDERS2: DQビルダーズ2の追加DLC第1弾「和風パック」の詳細内... \n", + "86 RT @torasan_movie: 【号泣嗚咽応援上映】の開催が決定しました🐱\\n\\n皆様... \n", + "87 RT @appmediafgo: 【プロテアの増殖について】\\n①スキルで毎ターン[増殖]状... \n", + "88 @blackluw3 今はちょっと食べる気力すらないですね…╭(›´ω`‹ )╮\\nでも何と... \n", + "89 RT @talesof_therays: 【お知らせ】\\nこんばんは。運営です。\\n続けてコ... \n", + "\n", + " apple \\\n", + "0 Apple CarPlay: Display im Auto konfigurieren h... \n", + "1 RT @layzhang: I caught up with @travismills on... \n", + "2 ➜Yuuko Hirose -WIND- https://t.co/WlTPeZ2EZj #... \n", + "3 RT @layzhang: I caught up with @travismills on... \n", + "4 RT @yaruki_arimi: \Podcastの最新話でたよ!/\\n\\n今週は「親友の... \n", + "5 RT @layzhang: I caught up with @travismills on... \n", + "6 RT @green_tea_niji: 声優 陶山恵実里さんが歌う\\nリフレクトムーンの新曲... \n", + "7 RT @layzhang: I caught up with @travismills on... \n", + "8 RT @TaylorMadeGolf: Special guest @NiallOffici... \n", + "9 RT @layzhang: I caught up with @travismills on... \n", + "10 RT @colopl_dreaming: 💿ゆめライブCD情報💿\\n\\n3ndシングル「Ma... \n", + "11 RT @EDinarWorldwide: 🔺 Apple Taps Blockchain t... \n", + "12 RT @layzhang: I caught up with @travismills on... \n", + "13 <silently eats an apple> \n", + "14 RT @nutpinenutpine: [애플 공홈에서 아이맥을 구입했는데 중고가 배송... \n", + "15 RT @Dominikow_: Por algum acaso o orixá pra qu... \n", + "16 @solodallamente @FjonaCakalli vabbè cosa c’ent... \n", + "17 Is Spotify really that much better than Apple ... \n", + "18 RT @layzhang: I caught up with @travismills on... \n", + "19 RT @layzhang: I caught up with @travismills on... \n", + "20 RT @qikipedia: One of the alert sounds on Mac ... \n", + "21 RT @layzhang: I caught up with @travismills on... \n", + "22 Zuckerberg reportedly told Facebook execs to u... \n", + "23 RT @sommy_mufc: I just received a notification... \n", + "24 @apple_nasty Считаю, что мастера должны давать... \n", + "25 RT @layzhang: I caught up with @travismills on... \n", + "26 For those who want to look more of chump than ... \n", + "27 RT @Beats1: China's @layzhang is on with @trav... \n", + "28 RT @layzhang: I caught up with @travismills on... \n", + "29 https://t.co/6G4y8w9WeY \n", + ".. ... \n", + "60 RT @nutpinenutpine: [애플 공홈에서 아이맥을 구입했는데 중고가 배송... \n", + "61 RT @layzhang: I caught up with @travismills on... \n", + "62 https://t.co/RZ8fWLv3o9 \n", + "63 RT @nutpinenutpine: [애플 공홈에서 아이맥을 구입했는데 중고가 배송... \n", + "64 RT @layzhang: I caught up with @travismills on... \n", + "65 @SHERIA_KKK Apple Watch Series 2!NIKE +が欲しいです! \n", + "66 @Apple_rmy46 中日が3位か \n", + "67 RT @layzhang: I caught up with @travismills on... \n", + "68 The latest #SoccerPM podcast is available now!... \n", + "69 RT @UnicornWal: 🎁 #GIVEAWAY : REMPORTE UN SWEA... \n", + "70 @gowonthecreator i think you really have to se... \n", + "71 RT @layzhang: I caught up with @travismills on... \n", + "72 RT @layzhang: I caught up with @travismills on... \n", + "73 Descubren el reto mensual para el Día de la Mu... \n", + "74 RT @arianaonchart: .@ArianaGrande's \"7 rings\" ... \n", + "75 If you are an Athlete and you think your highl... \n", + "76 RT @qikipedia: One of the alert sounds on Mac ... \n", + "77 RT @autaApp: Do you need your refrigerator, st... \n", + "78 RT @CyberDyne__lnc: 🖥懸賞&プレゼントキャンペーン📱\\n\\n『Apple... \n", + "79 RT @nutpinenutpine: [애플 공홈에서 아이맥을 구입했는데 중고가 배송... \n", + "80 Chris Williamson: Tom Watson demands Labour su... \n", + "81 RT @bungosd_anime: 【INFO】3/13(水)から全国の一部郵便局にて「文... \n", + "82 جمعت 190 نجمة في لعبة #كلمات_متقاطعة\\nاندرويد ... \n", + "83 RT @layzhang: I caught up with @travismills on... \n", + "84 ほんまええ曲やな https://t.co/ci4hvoaGxI \n", + "85 I’m in love I’m in love with a girl that body ... \n", + "86 #socialmedia Apple : des abonnements à des tar... \n", + "87 RT @layzhang: I caught up with @travismills on... \n", + "88 RT @Edinarcoin_ID: 🔺 Apple Taps Blockchain unt... \n", + "89 RT @maaku_p17n: 「アポリアを穿つ」の配信が、各配信サイト(iTunesやAp... \n", + "\n", + " microsoft \\\n", + "0 RT @MSEurope: Great opportunity to know more a... \n", + "1 RT @WhiteBit6: Microsoft Wants to Help Make Yo... \n", + "2 RT @mtholfsen: Ready to get started with @Micr... \n", + "3 @Tessa_824 really out here using Microsoft wor... \n", + "4 @GarethBrown @ThomasMaurer That’s correct - ht... \n", + "5 THQ doing that AMA was dumb, but people from M... \n", + "6 RT @Xbox: Seven historic cars, seventy thousan... \n", + "7 RT @Bright: Getest: de #Hololens2 die je hand-... \n", + "8 RT @nullenc0de: Looks like I was only scraping... \n", + "9 RT @Xbox: The Season of the Dragon is upon us,... \n", + "10 RT @Siber_Bulten: Microsoft’un ABD ordusuyla y... \n", + "11 Sadarbībā ar @RigaTechGirls 6. martā, Microsof... \n", + "12 RT @diegompc: Telefónica convierte a Microsoft... \n", + "13 RT @nypost: Microsoft employees demand company... \n", + "14 The application of @HoloLens in the health sec... \n", + "15 Microsoft's answer to Chromebooks may be 'Lite... \n", + "16 RT @ArvinK: @shaun_riordan @APPSPolicyForum @O... \n", + "17 Microsoft’un ABD ordusuyla yaptığı anlaşma çal... \n", + "18 ExxonMobil leading the energy sector with its ... \n", + "19 @Rangor Hehe, well on the contrary, most of th... \n", + "20 Discover ways to extend your on-premises IT of... \n", + "21 Students can build apps bots and AI using Micr... \n", + "22 RT @MenzoFN: 🤑VOICI MON SHOP🤑\\nLes différents ... \n", + "23 RT @Xbox: Unmask the newest DLC and play as Ob... \n", + "24 Ab Version 1.51 kann Microsoft ToDo mit mehrer... \n", + "25 Ergebnis des Schultages: Der Unterschied zwisc... \n", + "26 RT @WSJ: Opinion: The integrity of U.S. defens... \n", + "27 Capital Investment Services Of America Decreas... \n", + "28 RT @avgorkemgokce: Dünyanın en itibarlı markal... \n", + "29 Je m'éclate sur #CSRRacing pour Windows, tu vi... \n", + ".. ... \n", + "60 RT @kitgurupress: We’ll be seeing Microsoft’s ... \n", + "61 RT @hirax: 紙の「新聞」を読んで面白かった一節。(MicrosoftのHolole... \n", + "62 RT @NITE2MU: ระบบ Hololens ที่พัฒนาโดย Microso... \n", + "63 RT @spectatorindex: Most prestigious internshi... \n", + "64 @lelangacc_erpe zap integromat, ada baru pake ... \n", + "65 RT @maryjofoley: Windows Server IoT 2019 joins... \n", + "66 How building robots together is opening doors ... \n", + "67 Microsoft reportedly exploring new partnership... \n", + "68 From retailers to automotive manufacturers, le... \n", + "69 RT @KYK_Sakarya: Muhammed Fatih Safitürk Yurdu... \n", + "70 We’ll be seeing Microsoft’s PC gaming improvem... \n", + "71 @ireaderinokun In 2017 i attended a Microsoft ... \n", + "72 \"Microsoft and VMware are working on a partner... \n", + "73 https://t.co/7ARNvgg46f Philips showcases uniq... \n", + "74 Announcing Azure Integration Service Environme... \n", + "75 Todos los contenidos de Halo Reach, gratis en ... \n", + "76 Become MCSD Certified: Advantages of Passing Y... \n", + "77 Get started with Microsoft 365 Business #busin... \n", + "78 Microsoft giving us Jedi Academy and Republic ... \n", + "79 RT @ahmedjr_16: 35 Best #IT Training & #Ce... \n", + "80 RT @imcdnzl: The pitching process is broken - ... \n", + "81 RT @VWGroup_DE: Nur noch zwei Stunden bis zum ... \n", + "82 #EnterpriseResourcePlanning, a business manage... \n", + "83 RT @TomoboxHQ: We're going live! Tomorrow at 8... \n", + "84 Ako lang naman yung taga next sa microsoft , l... \n", + "85 Menlo Advisors Holding in Microsoft $MSFT Has ... \n", + "86 В Microsoft, предположительно, работают над во... \n", + "87 RT @ben_mwong: ตามเรื่อง #พรบไซเบอร์ แล้วลองมา... \n", + "88 Our Microsoft Project Level 2 course will buil... \n", + "89 Instantly restore your Azure Virtual Machines ... \n", + "\n", + " asus \n", + "0 Asus Dual-Band 802.11ac WiFi Router for $40 + ... \n", + "1 【徵求】\\n雲林 斗南\\nASUS筆電充電器 19V\\n借用到3/1 \n", + "2 アメブロを更新しました。 『世界のPC大手、台湾のASUS、スマートフォン「ZenFone6... \n", + "3 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "4 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "5 世界のPC大手、台湾のASUS、スマートフォン「ZenFone6」を発表? https://... \n", + "6 ASUS Zenfone 5 Lite - Rouge\\n\\nASUS Zenfone 5 ... \n", + "7 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "8 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "9 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "10 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "11 @togihara 動画だけで熱持ちますよ。。。(Nexus7のほうがマシレベルっす)\\n↓... \n", + "12 @Chiseldrs HAHAHA😂😂😂 asus \n", + "13 @ASUS_ROG_FR @lecomptoir Vous devriez faire ju... \n", + "14 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "15 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "16 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "17 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "18 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "19 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "20 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "21 Polewali kurang apalagi sdh ada pusat IT dan s... \n", + "22 RT @Okama_Sorteos: #SORTEO RTX 2060\\n\\n1️⃣ RT\\... \n", + "23 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "24 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "25 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "26 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "27 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "28 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "29 Asus presenta il nuovo GS30 https://t.co/7AXI... \n", + ".. ... \n", + "60 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "61 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "62 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "63 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "64 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "65 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "66 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "67 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "68 A budget friendly smartphone made for you. Cal... \n", + "69 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "70 Which one do I buy? 🤔 the Asus has height adju... \n", + "71 RT @DINOMARKET: Cuma mau kasih tau Asus Zenfon... \n", + "72 RT @CMG_eSports: Setup in need of an upgrade? ... \n", + "73 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "74 #ASUS #ZenFone now supported #architectural ht... \n", + "75 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "76 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "77 @derpingard but Lyra then you totally cannot u... \n", + "78 @yourguymat Asus.... amooor\\n\\nhttps://t.co/x4... \n", + "79 RT @DeanAzman_: Aku nak amek course computer e... \n", + "80 RT @CMG_eSports: Setup in need of an upgrade? ... \n", + "81 https://t.co/uHkFFhBxO3 ASUS ROG Strix RTX 208... \n", + "82 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "83 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "84 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "85 @ASUS_ZenBlog コレクションに欲しいけど実用にはキツそう! \n", + "86 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "87 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "88 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "89 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "\n", + "[90 rows x 4 columns]" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "tweet_text = [[tweet.text for tweet in tweets] for tweets in results]\n", + "reshaped = [[] for i in range(shortest_list)]\n", + "\n", + "for item in tweet_text:\n", + " index = 0\n", + " for tweet in item:\n", + " reshaped[index].append(tweet)\n", + " if index == shortest_list - 1:\n", + " break\n", + " index += 1\n", + " \n", + "data = pd.DataFrame(data=reshaped, columns= targets)\n", + "\n", + "display(data)" + ] + }, + { + "cell_type": "code", + "execution_count": 94, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 69 + }, + "colab_type": "code", + "id": "6k_z5lpRIN4t", + "outputId": "e5f77812-a407-4ed0-8198-240dd01b2bec" + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[nltk_data] Downloading package vader_lexicon to\n", + "[nltk_data] C:\\Users\\INYANG\\AppData\\Roaming\\nltk_data...\n", + "[nltk_data] Package vader_lexicon is already up-to-date!\n" + ] + }, + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": 94, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import nltk\n", + "nltk.download('vader_lexicon')" + ] + }, + { + "cell_type": "code", + "execution_count": 95, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 1969 + }, + "colab_type": "code", + "id": "kQiYGQEqIZ3w", + "outputId": "35c11ad4-4e98-4d25-c32a-0b627a3e5d90" + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0}\n" + ] + } + ], + "source": [ + "SIA = SentimentIntensityAnalyzer()\n", + "\n", + "sentiments = {}\n", + "for target in targets:\n", + " sentiments[target] = []\n", + " \n", + " for row in data[target]:\n", + " polarity = SIA.polarity_scores(row)\n", + " sentiments[target].append(polarity)\n", + "\n", + "print((sentiments[targets[0]])[2])\n", + "# se = pd.Series(listy)\n", + "# data['polarity'] = se.values\n", + "\n", + "# display(data.head(100))" + ] + }, + { + "cell_type": "code", + "execution_count": 96, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "hp {'pos': 0.7977777777777778, 'neg': 0.5266666666666666, 'comp': 0.9940000000000001}\n", + "apple {'pos': 3.6255555555555556, 'neg': 0.9944444444444445, 'comp': 6.476222222222224}\n", + "microsoft {'pos': 6.8133333333333335, 'neg': 1.9555555555555555, 'comp': 10.70622222222222}\n", + "asus {'pos': 2.01, 'neg': 1.5288888888888887, 'comp': 1.2690000000000001}\n" + ] + } + ], + "source": [ + "cummulative_sentiments = {}\n", + "\n", + "for key in sentiments:\n", + " pos = 0\n", + " neg = 0\n", + " comp = 0\n", + " for row in sentiments[key]:\n", + " pos += row['pos']\n", + "# print(pos)\n", + " neg += row['neg']\n", + " comp += row['compound']\n", + " \n", + " average_pos = (pos/len(sentiments[key]))*100 #CONVERT VALUES TO PERCENTAGE VALUE\n", + " average_neg = (neg/len(sentiments[key]))*100\n", + " average_comp = (comp/len(sentiments[key]))*100 if (comp/len(sentiments[key]))*100 > 0 else 0\n", + " \n", + " cummulative_sentiments[key] = {\"pos\" : average_pos, \"neg\" : average_neg, \"comp\" : average_comp}\n", + "for target in targets:\n", + " \n", + " print(target, cummulative_sentiments[target])\n", + "# print('Positive :',average_pos, 'Negative :', average_neg, 'Compound :', average_comp)" + ] + }, + { + "cell_type": "code", + "execution_count": 90, + "metadata": {}, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXQAAAD8CAYAAABn919SAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4zLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvIxREBQAADLdJREFUeJzt3X+MpIVdx/H3p6CCpTY0LCdpwWuRlmIPrnIlRqqCpA0aDWDSVNKYa9L0tKEGEk3F9g9J/FGi0Wq0gqelXGuhEiuChCiU/ri2AcsdXrlDQFoERZA7xEix8vvrH/Ocbo/b29nd2R32e+9XcpmZZ56d+e7OzXufeebHpqqQJK1+L5v2AJKkyTDoktSEQZekJgy6JDVh0CWpCYMuSU0YdElqwqBLUhMGXZKaOHQlr+yoo46qtWvXruRVStKqt3379seqama+9VY06GvXrmXbtm0reZWStOoleXCc9dzlIklNGHRJasKgS1ITBl2SmjDoktSEQZekJgy6JDVh0CWpCYMuSU2s6DtFJb20rduybtojtLVz485lvw630CWpCYMuSU0YdElqwqBLUhMGXZKaMOiS1IRBl6QmDLokNWHQJakJgy5JTRh0SWrCoEtSEwZdkpow6JLUhEGXpCYMuiQ1YdAlqQmDLklNzBv0JMcm+XySu5PcleTCYfmrktyc5L7h8MjlH1eSNJdxttCfA36pqt4I/BBwQZKTgIuBW6rqBOCW4bQkaUrmDXpVPVJVdwzHvwncDbwaOAfYMqy2BTh3uYaUJM1vQfvQk6wF3gz8PbCmqh6BUfSBoyc9nCRpfGMHPckRwGeAi6rqiQV83aYk25Js27Nnz2JmlCSNYaygJ/kORjH/VFX91bD40STHDOcfA+ze39dW1eaq2lBVG2ZmZiYxsyRpP8Z5lUuAjwF3V9XvzTrremDjcHwjcN3kx5MkjevQMdY5Hfg5YGeSHcOyDwKXAtckeQ/wL8A7lmdESdI45g16VX0ZyBxnnzXZcSRJi+U7RSWpCYMuSU0YdElqwqBLU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WwTvrqqnk/zxHMsvAz4+PMTfwcL/Q2tx9u5Dh9EW3caqej7Jp4C/SbKN0e1xD0BV3TE8ab2D0UP4L01j6NVouL+cB/x+Rn/J7ClGcb0IOAL4GqOt4A9U1b8Pv2DHdS+jXTVrgF+oqqcOcF/7CvDPjHbb7GK856suBK4a9t1/ZgFzvST4TlFJq0KSK4Ebquovpz3LS5W7XCSpCbfQJakJt9AlqQmDLklNGHRJasKgS1ITBl2SmjDoktTE/wIgcdLFx162pgAAAABJRU5ErkJggg==\n", + "text/plain": [ + "
" + ] + }, + "metadata": { + "needs_background": "light" + }, + "output_type": "display_data" + } + ], + "source": [ + "for target in targets:\n", + " plt.bar(height = [cummulative_sentiments[target][\"pos\"], cummulative_sentiments[target][\"neg\"], cummulative_sentiments[target][\"comp\"]], x = [ \"Good\", \"Bad\", \"Compound\"])\n", + "\n", + " plt.plot()\n" + ] + } + ], + "metadata": { + "colab": { + "name": "Untitled29.ipynb", + "provenance": [], + "version": "0.3.2" + }, + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.7.0" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/.ipynb_checkpoints/Sentiment_Analysis-checkpoint.ipynb b/.ipynb_checkpoints/Sentiment_Analysis-checkpoint.ipynb new file mode 100644 index 0000000..52fda9c --- /dev/null +++ b/.ipynb_checkpoints/Sentiment_Analysis-checkpoint.ipynb @@ -0,0 +1,811 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 387 + }, + "colab_type": "code", + "id": "nMx2UqrJFyw-", + "outputId": "2a1da4e3-31d4-401f-f6b0-9f693ad8d9a6" + }, + "outputs": [], + "source": [ + "# !pip install pandas\n", + "# !pip install tweepy\n", + "# !pip install vaderSentiment\n", + "# !pip install tweepy\n", + "# !pip install PyHamcrest\n", + "# !pip install twython" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "colab": {}, + "colab_type": "code", + "id": "VldzdttbGRT6" + }, + "outputs": [], + "source": [ + "import tweepy\n", + "import pandas as pd\n", + "from nltk.sentiment.vader import SentimentIntensityAnalyzer\n", + "import matplotlib.pyplot as plt" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "colab": {}, + "colab_type": "code", + "id": "xoeDu5guGo-N" + }, + "outputs": [], + "source": [ + "#My Twitter API Authentication Variables\n", + "consumer_key = ''\n", + "consumer_secret = ''\n", + "access_token = ''\n", + "access_token_secret = ''" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 376 + }, + "colab_type": "code", + "id": "i41rn4KkG-iz", + "outputId": "0243083f-626d-4df7-e974-f51e1e9d7790" + }, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Tweets
0RT @BeyLegion: Guest list for Beyoncé &amp; JA...
1Look at the music gods tryna bless us after a ...
2RT @__Pchs: Beyoncé is really a celebrity even...
3RT @aluapgf: quando vc é fã da Beyoncé e do Na...
4RT @AdamDriverFiles: When it’s been a long awa...
5RT @dietanimalfries: Today is Erykah Badu’s bi...
6RT @aluapgf: quando vc é fã da Beyoncé e do Na...
7RT @conrrrad: fun fact: beyoncé e jay-z si son...
8Deep down i act like I’m okay but i really wan...
9RT @seungwann: ONE OF THE MOST ICONIC AND FUNN...
\n", + "
" + ], + "text/plain": [ + " Tweets\n", + "0 RT @BeyLegion: Guest list for Beyoncé & JA...\n", + "1 Look at the music gods tryna bless us after a ...\n", + "2 RT @__Pchs: Beyoncé is really a celebrity even...\n", + "3 RT @aluapgf: quando vc é fã da Beyoncé e do Na...\n", + "4 RT @AdamDriverFiles: When it’s been a long awa...\n", + "5 RT @dietanimalfries: Today is Erykah Badu’s bi...\n", + "6 RT @aluapgf: quando vc é fã da Beyoncé e do Na...\n", + "7 RT @conrrrad: fun fact: beyoncé e jay-z si son...\n", + "8 Deep down i act like I’m okay but i really wan...\n", + "9 RT @seungwann: ONE OF THE MOST ICONIC AND FUNN..." + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "2019-02-26 20:12:32\n" + ] + } + ], + "source": [ + "auth = tweepy.OAuthHandler(consumer_key, consumer_secret)\n", + "auth.set_access_token(access_token, access_token_secret)\n", + "\n", + "api = tweepy.API(auth)\n", + "\n", + "tweets = api.search('beyonce', count=200)\n", + "\n", + "\n", + "data = pd.DataFrame(data=[tweet.text for tweet in tweets], columns=['Tweets'])\n", + "\n", + "display(data.head(10))\n", + "\n", + "\n", + "print(tweets[0].created_at)\n" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 69 + }, + "colab_type": "code", + "id": "6k_z5lpRIN4t", + "outputId": "e5f77812-a407-4ed0-8198-240dd01b2bec" + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[nltk_data] Downloading package vader_lexicon to\n", + "[nltk_data] C:\\Users\\INYANG\\AppData\\Roaming\\nltk_data...\n", + "[nltk_data] Package vader_lexicon is already up-to-date!\n" + ] + }, + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import nltk\n", + "nltk.download('vader_lexicon')" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 1969 + }, + "colab_type": "code", + "id": "kQiYGQEqIZ3w", + "outputId": "35c11ad4-4e98-4d25-c32a-0b627a3e5d90" + }, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Tweetspolarity
0RT @BeyLegion: Guest list for Beyoncé &amp; JA...{'neg': 0.0, 'neu': 0.816, 'pos': 0.184, 'comp...
1Look at the music gods tryna bless us after a ...{'neg': 0.0, 'neu': 0.865, 'pos': 0.135, 'comp...
2RT @__Pchs: Beyoncé is really a celebrity even...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
3RT @aluapgf: quando vc é fã da Beyoncé e do Na...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
4RT @AdamDriverFiles: When it’s been a long awa...{'neg': 0.0, 'neu': 0.885, 'pos': 0.115, 'comp...
5RT @dietanimalfries: Today is Erykah Badu’s bi...{'neg': 0.0, 'neu': 0.607, 'pos': 0.393, 'comp...
6RT @aluapgf: quando vc é fã da Beyoncé e do Na...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
7RT @conrrrad: fun fact: beyoncé e jay-z si son...{'neg': 0.0, 'neu': 0.809, 'pos': 0.191, 'comp...
8Deep down i act like I’m okay but i really wan...{'neg': 0.111, 'neu': 0.515, 'pos': 0.374, 'co...
9RT @seungwann: ONE OF THE MOST ICONIC AND FUNN...{'neg': 0.0, 'neu': 0.688, 'pos': 0.312, 'comp...
10@akaworldwide Imagine her being the next Beyonce.{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
11DJ Khaled ft. Beyonce &amp; Jay Z - Digiwaxx M...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
12RT @ohyeatb: nah bitch fr, Beyonce get yo sist...{'neg': 0.48, 'neu': 0.52, 'pos': 0.0, 'compou...
13RT @abc13houston: 🎶Beyonce, can you handle thi...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
14RT @TheDailyShow: What do you do when you see ...{'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp...
15RT @ced_gaga16: Again.. Beyoncé’s version of A...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
16RT @smalltownandrew: Democrats partied with Be...{'neg': 0.0, 'neu': 0.797, 'pos': 0.203, 'comp...
17RT @dietanimalfries: Today is Erykah Badu’s bi...{'neg': 0.0, 'neu': 0.607, 'pos': 0.393, 'comp...
18RT @fourbeyk: BEYONCÉ E GAGA CHEGOU A HORA DE ...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
19RT @dietanimalfries: Today is Erykah Badu’s bi...{'neg': 0.0, 'neu': 0.607, 'pos': 0.393, 'comp...
20RT @CaucasianJames: beyonce wrote irreplaceabl...{'neg': 0.097, 'neu': 0.903, 'pos': 0.0, 'comp...
21RT @BeyLegion: .@BenRealVsWorld recaps his yea...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
22At this point,Beyoncé is the only unproblemati...{'neg': 0.0, 'neu': 0.738, 'pos': 0.262, 'comp...
23RT @HealthCoachJaye: @ciacobu @sloan_kettering...{'neg': 0.0, 'neu': 0.6, 'pos': 0.4, 'compound...
24RT @MidiaKPN: #KPNVideos | Vídeo de Katy Perry...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
25@RepBarbaraLee Gregory Meeks, Barbara Lee, Bob...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
26Noah centineo...Beyoncé inviting anybody https...{'neg': 0.0, 'neu': 0.635, 'pos': 0.365, 'comp...
27RT @_dxndi: What Beyoncé’s “No Angel” shoulda ...{'neg': 0.0, 'neu': 0.815, 'pos': 0.185, 'comp...
28RT @Bey_Legion: .@JeffBezos attend Beyoncé &am...{'neg': 0.0, 'neu': 0.803, 'pos': 0.197, 'comp...
29RT @UncleSego: Also im always on the black art...{'neg': 0.0, 'neu': 0.912, 'pos': 0.088, 'comp...
.........
44RT @BeyLegion: .@chadwickboseman, @KELLYROWLAN...{'neg': 0.0, 'neu': 0.847, 'pos': 0.153, 'comp...
45I wish I was the cockroach in Beyonce and Jay ...{'neg': 0.0, 'neu': 0.847, 'pos': 0.153, 'comp...
46@carlixann @qveenberr_ She told Beyoncé to mov...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
47@Trophyxt that was in a Beyonce song and you r...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
48RT @BeyLegion: .@BenRealVsWorld recaps his yea...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
49@MrBeyonceFan You can’t marry your way into a ...{'neg': 0.0, 'neu': 0.593, 'pos': 0.407, 'comp...
50RT @Kay_Mantanga: Beyoncé is becoming such a s...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
51RT @fourbeyk: BEYONCÉ E GAGA CHEGOU A HORA DE ...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
52RT @Paintwizard1: @NYAEYC @RepGregoryMeeks Gre...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
53........???? So become Beyoncé overnight? Hear...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
54nah bitch fr, Beyonce get yo sister before i c...{'neg': 0.542, 'neu': 0.458, 'pos': 0.0, 'comp...
55RT @BeyonceHard: Hannah Beachler, que trabalho...{'neg': 0.099, 'neu': 0.901, 'pos': 0.0, 'comp...
56RT @__Pchs: Beyoncé is really a celebrity even...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
57RT @BeyLegion: .@BenRealVsWorld recaps his yea...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
58🔥🔥🔥🔥🔥\\nBuy GHT token here at .000608 Eth = 1 G...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
59@NYAEYC @RepGregoryMeeks Gregory Meeks, Barbar...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
60RT @TheDailyShow: What do you do when you see ...{'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp...
61RT @aluapgf: quando vc é fã da Beyoncé e do Na...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
62RT @TheDailyShow: What do you do when you see ...{'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp...
63RT @faythegenius: So glad Beyoncé invented mus...{'neg': 0.0, 'neu': 0.68, 'pos': 0.32, 'compou...
64RT @seungwann: ONE OF THE MOST ICONIC AND FUNN...{'neg': 0.0, 'neu': 0.688, 'pos': 0.312, 'comp...
65eu amo tanto as musicas antigas da Beyoncé e d...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
66RT @BeyLegion: Guest list for Beyoncé &amp; JA...{'neg': 0.0, 'neu': 0.816, 'pos': 0.184, 'comp...
67RT @TheDailyShow: What do you do when you see ...{'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp...
68@lemonando Então, ela já fumou. E sim, prejudi...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
69RT @BeyonceHard: Hannah Beachler, que trabalho...{'neg': 0.099, 'neu': 0.901, 'pos': 0.0, 'comp...
70RT @fourbeyk: BEYONCÉ E GAGA CHEGOU A HORA DE ...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
71RT @TheDailyShow: What do you do when you see ...{'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp...
72RT @TheDailyShow: What do you do when you see ...{'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp...
73Olha o que a festa da Beyoncé nos proporcionou...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
\n", + "

74 rows × 2 columns

\n", + "
" + ], + "text/plain": [ + " Tweets \\\n", + "0 RT @BeyLegion: Guest list for Beyoncé & JA... \n", + "1 Look at the music gods tryna bless us after a ... \n", + "2 RT @__Pchs: Beyoncé is really a celebrity even... \n", + "3 RT @aluapgf: quando vc é fã da Beyoncé e do Na... \n", + "4 RT @AdamDriverFiles: When it’s been a long awa... \n", + "5 RT @dietanimalfries: Today is Erykah Badu’s bi... \n", + "6 RT @aluapgf: quando vc é fã da Beyoncé e do Na... \n", + "7 RT @conrrrad: fun fact: beyoncé e jay-z si son... \n", + "8 Deep down i act like I’m okay but i really wan... \n", + "9 RT @seungwann: ONE OF THE MOST ICONIC AND FUNN... \n", + "10 @akaworldwide Imagine her being the next Beyonce. \n", + "11 DJ Khaled ft. Beyonce & Jay Z - Digiwaxx M... \n", + "12 RT @ohyeatb: nah bitch fr, Beyonce get yo sist... \n", + "13 RT @abc13houston: 🎶Beyonce, can you handle thi... \n", + "14 RT @TheDailyShow: What do you do when you see ... \n", + "15 RT @ced_gaga16: Again.. Beyoncé’s version of A... \n", + "16 RT @smalltownandrew: Democrats partied with Be... \n", + "17 RT @dietanimalfries: Today is Erykah Badu’s bi... \n", + "18 RT @fourbeyk: BEYONCÉ E GAGA CHEGOU A HORA DE ... \n", + "19 RT @dietanimalfries: Today is Erykah Badu’s bi... \n", + "20 RT @CaucasianJames: beyonce wrote irreplaceabl... \n", + "21 RT @BeyLegion: .@BenRealVsWorld recaps his yea... \n", + "22 At this point,Beyoncé is the only unproblemati... \n", + "23 RT @HealthCoachJaye: @ciacobu @sloan_kettering... \n", + "24 RT @MidiaKPN: #KPNVideos | Vídeo de Katy Perry... \n", + "25 @RepBarbaraLee Gregory Meeks, Barbara Lee, Bob... \n", + "26 Noah centineo...Beyoncé inviting anybody https... \n", + "27 RT @_dxndi: What Beyoncé’s “No Angel” shoulda ... \n", + "28 RT @Bey_Legion: .@JeffBezos attend Beyoncé &am... \n", + "29 RT @UncleSego: Also im always on the black art... \n", + ".. ... \n", + "44 RT @BeyLegion: .@chadwickboseman, @KELLYROWLAN... \n", + "45 I wish I was the cockroach in Beyonce and Jay ... \n", + "46 @carlixann @qveenberr_ She told Beyoncé to mov... \n", + "47 @Trophyxt that was in a Beyonce song and you r... \n", + "48 RT @BeyLegion: .@BenRealVsWorld recaps his yea... \n", + "49 @MrBeyonceFan You can’t marry your way into a ... \n", + "50 RT @Kay_Mantanga: Beyoncé is becoming such a s... \n", + "51 RT @fourbeyk: BEYONCÉ E GAGA CHEGOU A HORA DE ... \n", + "52 RT @Paintwizard1: @NYAEYC @RepGregoryMeeks Gre... \n", + "53 ........???? So become Beyoncé overnight? Hear... \n", + "54 nah bitch fr, Beyonce get yo sister before i c... \n", + "55 RT @BeyonceHard: Hannah Beachler, que trabalho... \n", + "56 RT @__Pchs: Beyoncé is really a celebrity even... \n", + "57 RT @BeyLegion: .@BenRealVsWorld recaps his yea... \n", + "58 🔥🔥🔥🔥🔥\\nBuy GHT token here at .000608 Eth = 1 G... \n", + "59 @NYAEYC @RepGregoryMeeks Gregory Meeks, Barbar... \n", + "60 RT @TheDailyShow: What do you do when you see ... \n", + "61 RT @aluapgf: quando vc é fã da Beyoncé e do Na... \n", + "62 RT @TheDailyShow: What do you do when you see ... \n", + "63 RT @faythegenius: So glad Beyoncé invented mus... \n", + "64 RT @seungwann: ONE OF THE MOST ICONIC AND FUNN... \n", + "65 eu amo tanto as musicas antigas da Beyoncé e d... \n", + "66 RT @BeyLegion: Guest list for Beyoncé & JA... \n", + "67 RT @TheDailyShow: What do you do when you see ... \n", + "68 @lemonando Então, ela já fumou. E sim, prejudi... \n", + "69 RT @BeyonceHard: Hannah Beachler, que trabalho... \n", + "70 RT @fourbeyk: BEYONCÉ E GAGA CHEGOU A HORA DE ... \n", + "71 RT @TheDailyShow: What do you do when you see ... \n", + "72 RT @TheDailyShow: What do you do when you see ... \n", + "73 Olha o que a festa da Beyoncé nos proporcionou... \n", + "\n", + " polarity \n", + "0 {'neg': 0.0, 'neu': 0.816, 'pos': 0.184, 'comp... \n", + "1 {'neg': 0.0, 'neu': 0.865, 'pos': 0.135, 'comp... \n", + "2 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "3 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "4 {'neg': 0.0, 'neu': 0.885, 'pos': 0.115, 'comp... \n", + "5 {'neg': 0.0, 'neu': 0.607, 'pos': 0.393, 'comp... \n", + "6 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "7 {'neg': 0.0, 'neu': 0.809, 'pos': 0.191, 'comp... \n", + "8 {'neg': 0.111, 'neu': 0.515, 'pos': 0.374, 'co... \n", + "9 {'neg': 0.0, 'neu': 0.688, 'pos': 0.312, 'comp... \n", + "10 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "11 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "12 {'neg': 0.48, 'neu': 0.52, 'pos': 0.0, 'compou... \n", + "13 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "14 {'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp... \n", + "15 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "16 {'neg': 0.0, 'neu': 0.797, 'pos': 0.203, 'comp... \n", + "17 {'neg': 0.0, 'neu': 0.607, 'pos': 0.393, 'comp... \n", + "18 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "19 {'neg': 0.0, 'neu': 0.607, 'pos': 0.393, 'comp... \n", + "20 {'neg': 0.097, 'neu': 0.903, 'pos': 0.0, 'comp... \n", + "21 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "22 {'neg': 0.0, 'neu': 0.738, 'pos': 0.262, 'comp... \n", + "23 {'neg': 0.0, 'neu': 0.6, 'pos': 0.4, 'compound... \n", + "24 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "25 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "26 {'neg': 0.0, 'neu': 0.635, 'pos': 0.365, 'comp... \n", + "27 {'neg': 0.0, 'neu': 0.815, 'pos': 0.185, 'comp... \n", + "28 {'neg': 0.0, 'neu': 0.803, 'pos': 0.197, 'comp... \n", + "29 {'neg': 0.0, 'neu': 0.912, 'pos': 0.088, 'comp... \n", + ".. ... \n", + "44 {'neg': 0.0, 'neu': 0.847, 'pos': 0.153, 'comp... \n", + "45 {'neg': 0.0, 'neu': 0.847, 'pos': 0.153, 'comp... \n", + "46 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "47 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "48 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "49 {'neg': 0.0, 'neu': 0.593, 'pos': 0.407, 'comp... \n", + "50 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "51 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "52 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "53 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "54 {'neg': 0.542, 'neu': 0.458, 'pos': 0.0, 'comp... \n", + "55 {'neg': 0.099, 'neu': 0.901, 'pos': 0.0, 'comp... \n", + "56 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "57 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "58 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "59 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "60 {'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp... \n", + "61 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "62 {'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp... \n", + "63 {'neg': 0.0, 'neu': 0.68, 'pos': 0.32, 'compou... \n", + "64 {'neg': 0.0, 'neu': 0.688, 'pos': 0.312, 'comp... \n", + "65 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "66 {'neg': 0.0, 'neu': 0.816, 'pos': 0.184, 'comp... \n", + "67 {'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp... \n", + "68 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "69 {'neg': 0.099, 'neu': 0.901, 'pos': 0.0, 'comp... \n", + "70 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "71 {'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp... \n", + "72 {'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp... \n", + "73 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "\n", + "[74 rows x 2 columns]" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "sid = SentimentIntensityAnalyzer()\n", + "\n", + "\n", + "listy = []\n", + "\n", + "for index, row in data.iterrows():\n", + " ss = sid.polarity_scores(row[\"Tweets\"])\n", + " listy.append(ss)\n", + " \n", + "se = pd.Series(listy)\n", + "data['polarity'] = se.values\n", + "\n", + "display(data.head(100))" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Positive : 10.405405405405402 Negative : 2.1945945945945944 Compound : 21.592972972972966\n" + ] + } + ], + "source": [ + "type(data['polarity'][4])\n", + "data['polarity'][4]\n", + "pos = 0\n", + "neg = 0\n", + "comp = 0\n", + "for row in data['polarity']:\n", + " pos += row['pos']\n", + " neg += row['neg']\n", + " comp += row['compound']\n", + " \n", + "average_pos = (pos/data['polarity'].size)*100\n", + "average_neg = (neg/data['polarity'].size)*100\n", + "average_comp = (comp/data['polarity'].size)*100 if (comp/data['polarity'].size)*100 > 0 else 0\n", + "\n", + "print('Positive :',average_pos, 'Negative :', average_neg, 'Compound :', average_comp)" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[]" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXQAAAD8CAYAAABn919SAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4zLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvIxREBQAADJBJREFUeJzt3X+MpIVdx/H3p6CCpZo2t5ykBbdFWooIV7kSI1XBpgalBjCplTSGJk1PG2og0dSz/cMm/jo1Wo1WyNlSaC20xIogEKWlP65twHKHV34ISIuHIsgd0oRi5dfx9Y95Tq/H7e7s7uwN+733K7nszDPPzvPdnZv3PvPMzmyqCknS6veiaQ8gSZoMgy5JTRh0SWrCoEtSEwZdkpow6JLUhEGXpCYMuiQ1YdAlqYlDD+TG1q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S/ABz39fm82Lglqp6X5I/AN4J/Dbwp8DFVfXRJBcs/kufLvfQlyDJB4ef7LcCbwA+BlBV9wAPAK+eZ/mPA381LL8duP2AfwEHpz2HXI4HzgQ+OhwaCPC7SW4HPsPo/YjWAj8GXF1V36qqx/FFc5PwBuDKqtpdVY8AXwBeP1x2a1U9XFVPAV8HbhyW38Eo4ntcVVXPVdV9jMJ/PHPf1+bzNHDdcHrbXts4DbhyOP2xxX6B02bQx3MXoz02AKrqAuCNwAz7f08b5lkO+3nPGx04VXUzoz3EGeBtw8dTqmod8AijvXjwdlqqu4BT9rN8vvvEU3udfm6v88/x7UcS9r1Nap7rfZZvb9xhe51+pv7/d7Z3L7CNVcOgj+ezwGFJ3rXXsu8ePm5hFAWGh3nHAPeOufxE4KQDML/2MjwsPwT4L+B7gZ1V9cxw7HXPmyBtAc4dnvN4CfCz05l2Vfos8F1J3rlnQZLXM3re4q1JDkkyw+jR6lcWed1vSfKi4bj6q5j/vrYDWDesfzSjt/xeyJcZHWpjz3WuJh5DH0NVVZJzgA8keQ+wC/hv4NeBa4BLktzBaI/g7VX1VJK/mGP5xcBHhof421n8f2gtzZ5j6DDaozu/qnYn+Tjwd0m2Mro97gGoqtuGJ623M3oI/8VpDL0aDfeXc4E/yegvmT3JKK4XAUcAX2W0F/yeqvrP4QfsuO5ldKhmLfDLVfXkPPe1LwP/yuiwzZ2M93zVhcAVw7H7Ty1irhcEXykqaVVIchlwXVX99bRneaHykIskNeEeuiQ14R66JDVh0CWpCYMuSU0YdElqwqBLUhMGXZKa+F8iUNI4z2X0HgAAAABJRU5ErkJggg==\n", + "text/plain": [ + "
" + ] + }, + "metadata": { + "needs_background": "light" + }, + "output_type": "display_data" + } + ], + "source": [ + "\n", + "plt.bar(height = [average_pos, average_neg, average_comp], x = [ \"Good\", \"Bad\", \"Compound\"])\n", + "plt.plot()\n" + ] + } + ], + "metadata": { + "colab": { + "name": "Untitled29.ipynb", + "provenance": [], + "version": "0.3.2" + }, + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.7.0" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/1.9.0 b/1.9.0 new file mode 100644 index 0000000..2e1f7e9 --- /dev/null +++ b/1.9.0 @@ -0,0 +1,6 @@ +Collecting PyHamcrest + Downloading https://files.pythonhosted.org/packages/9a/d5/d37fd731b7d0e91afcc84577edeccf4638b4f9b82f5ffe2f8b62e2ddc609/PyHamcrest-1.9.0-py2.py3-none-any.whl (52kB) +Requirement already satisfied: setuptools in c:\users\inyang\anaconda3\lib\site-packages (from PyHamcrest) (40.2.0) +Requirement already satisfied: six in c:\users\inyang\anaconda3\lib\site-packages (from PyHamcrest) (1.11.0) +Installing collected packages: PyHamcrest +Successfully installed PyHamcrest-1.9.0 diff --git a/Sentiment compare.ipynb b/Sentiment compare.ipynb new file mode 100644 index 0000000..3488b02 --- /dev/null +++ b/Sentiment compare.ipynb @@ -0,0 +1,1018 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 77, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 387 + }, + "colab_type": "code", + "id": "nMx2UqrJFyw-", + "outputId": "2a1da4e3-31d4-401f-f6b0-9f693ad8d9a6" + }, + "outputs": [], + "source": [ + "# !pip install pandas\n", + "# !pip install tweepy\n", + "# !pip install vaderSentiment\n", + "# !pip install tweepy\n", + "# !pip install PyHamcrest\n", + "# !pip install twython" + ] + }, + { + "cell_type": "code", + "execution_count": 81, + "metadata": { + "colab": {}, + "colab_type": "code", + "id": "VldzdttbGRT6" + }, + "outputs": [], + "source": [ + "import tweepy\n", + "import pandas as pd\n", + "from nltk.sentiment.vader import SentimentIntensityAnalyzer\n", + "import matplotlib.pyplot as plt\n", + "import numpy as np\n", + "import ast" + ] + }, + { + "cell_type": "code", + "execution_count": 82, + "metadata": { + "colab": {}, + "colab_type": "code", + "id": "xoeDu5guGo-N" + }, + "outputs": [], + "source": [ + "#My Twitter API Authentication Variables\n", + "consumer_key = ''\n", + "consumer_secret = ''\n", + "access_token = ''\n", + "access_token_secret = ''" + ] + }, + { + "cell_type": "code", + "execution_count": 91, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 376 + }, + "colab_type": "code", + "id": "i41rn4KkG-iz", + "outputId": "0243083f-626d-4df7-e974-f51e1e9d7790" + }, + "outputs": [], + "source": [ + "auth = tweepy.OAuthHandler(consumer_key, consumer_secret)\n", + "auth.set_access_token(access_token, access_token_secret)\n", + "\n", + "api = tweepy.API(auth)\n", + "\n", + "targets = [\"hp\", \"apple\", \"microsoft\", \"asus\"]\n", + "results = []\n", + "number_of_tweets = 200\n", + "\n", + "for item in targets:\n", + " results.append(api.search(item, count=number_of_tweets))" + ] + }, + { + "cell_type": "code", + "execution_count": 92, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "90\n" + ] + } + ], + "source": [ + "shortest_list = min((len(x) for x in results))\n", + "print(shortest_list)" + ] + }, + { + "cell_type": "code", + "execution_count": 93, + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
hpapplemicrosoftasus
0RT @talesof_therays: 【お知らせ】\\nこんばんは。運営です。\\n続けてコ...Apple CarPlay: Display im Auto konfigurieren h...RT @MSEurope: Great opportunity to know more a...Asus Dual-Band 802.11ac WiFi Router for $40 + ...
1RT @torasan_movie: 【号泣嗚咽応援上映】の開催が決定しました🐱\\n\\n皆様...RT @layzhang: I caught up with @travismills on...RT @WhiteBit6: Microsoft Wants to Help Make Yo...【徵求】\\n雲林 斗南\\nASUS筆電充電器 19V\\n借用到3/1
2RT @Granblue_GW: ◆2年生チーム最終性能まとめ\\n最終後\\n・奥義演出が豪華...➜Yuuko Hirose -WIND- https://t.co/WlTPeZ2EZj #...RT @mtholfsen: Ready to get started with @Micr...アメブロを更新しました。 『世界のPC大手、台湾のASUS、スマートフォン「ZenFone6...
3RT @kfyyh0927: インディ開幕まで あと 10日 じゃ!! (写真:佐藤琢磨公式...RT @layzhang: I caught up with @travismills on...@Tessa_824 really out here using Microsoft wor...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
4280. 이시다 아유미, 사야시 리호 https://t.co/PHzacskbpzRT @yaruki_arimi: \Podcastの最新話でたよ!/\\n\\n今週は「親友の...@GarethBrown @ThomasMaurer That’s correct - ht...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
5🇺🇸ミッキーのオムツケーキは大人気です👶🎉\\n.\\n男の子の出産祝いにどうぞ😊✨ https...RT @layzhang: I caught up with @travismills on...THQ doing that AMA was dumb, but people from M...世界のPC大手、台湾のASUS、スマートフォン「ZenFone6」を発表? https://...
6RT @Granblue_GW: ◆2年生チーム最終性能まとめ\\n最終後\\n・奥義演出が豪華...RT @green_tea_niji: 声優 陶山恵実里さんが歌う\\nリフレクトムーンの新曲...RT @Xbox: Seven historic cars, seventy thousan...ASUS Zenfone 5 Lite - Rouge\\n\\nASUS Zenfone 5 ...
7Que peligro tan hp, no sabía q los médicos ten...RT @layzhang: I caught up with @travismills on...RT @Bright: Getest: de #Hololens2 die je hand-...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
8RT @Suharno41747558: HARNO BADUT: menyewakan,...RT @TaylorMadeGolf: Special guest @NiallOffici...RT @nullenc0de: Looks like I was only scraping...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
9RT @Granblue_GW: ◆2年生チーム最終性能まとめ\\n最終後\\n・奥義演出が豪華...RT @layzhang: I caught up with @travismills on...RT @Xbox: The Season of the Dragon is upon us,...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
10@EhhItsOk @KylePlantEmoji That's 1 hp per step...RT @colopl_dreaming: 💿ゆめライブCD情報💿\\n\\n3ndシングル「Ma...RT @Siber_Bulten: Microsoft’un ABD ordusuyla y...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
11RT @mashio_fuguta: 【譲渡/お譲り】【拡散希望】\\n2019年3月23日(...RT @EDinarWorldwide: 🔺 Apple Taps Blockchain t...Sadarbībā ar @RigaTechGirls 6. martā, Microsof...@togihara 動画だけで熱持ちますよ。。。(Nexus7のほうがマシレベルっす)\\n↓...
12@hp_hp25 闇が深い!?RT @layzhang: I caught up with @travismills on...RT @diegompc: Telefónica convierte a Microsoft...@Chiseldrs HAHAHA😂😂😂 asus
13RT @Suharno41747558: HARNO BADUT: menyewakan,...&lt;silently eats an apple&gt;RT @nypost: Microsoft employees demand company...@ASUS_ROG_FR @lecomptoir Vous devriez faire ju...
14RT @Vampiroperver: 🔴🔴🔴🔴🤣🤣🤣En Cadena Internacio...RT @nutpinenutpine: [애플 공홈에서 아이맥을 구입했는데 중고가 배송...The application of @HoloLens in the health sec...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
15RT @toukenmovie2019: 【応援上映】3月に入ってからも応援上映が続きます!...RT @Dominikow_: Por algum acaso o orixá pra qu...Microsoft's answer to Chromebooks may be 'Lite...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
16RT @Suharno41747558: HARNO BADUT: menyewakan,...@solodallamente @FjonaCakalli vabbè cosa c’ent...RT @ArvinK: @shaun_riordan @APPSPolicyForum @O...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
17RT @Granblue_GW: ◆2年生チーム最終性能まとめ\\n最終後\\n・奥義演出が豪華...Is Spotify really that much better than Apple ...Microsoft’un ABD ordusuyla yaptığı anlaşma çal...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
18Ujung2ny cm main hp ntn film buka ig wa line b...RT @layzhang: I caught up with @travismills on...ExxonMobil leading the energy sector with its ...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
19RT @FujifilmJP_sp: 教室を思い出写真でいっぱいに。\\n#教室アルバム アイ...RT @layzhang: I caught up with @travismills on...@Rangor Hehe, well on the contrary, most of th...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
20RT @toukenmovie2019: 【応援上映】3月に入ってからも応援上映が続きます!...RT @qikipedia: One of the alert sounds on Mac ...Discover ways to extend your on-premises IT of...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
21RT @HP_gurume: \フォロー&リツイートで応募完了/\\nウコンドリンク5本が4名...RT @layzhang: I caught up with @travismills on...Students can build apps bots and AI using Micr...Polewali kurang apalagi sdh ada pusat IT dan s...
22気になってスキルマにしたけど毎ターン3000もHP増えて草Zuckerberg reportedly told Facebook execs to u...RT @MenzoFN: 🤑VOICI MON SHOP🤑\\nLes différents ...RT @Okama_Sorteos: #SORTEO RTX 2060\\n\\n1️⃣ RT\\...
23RT @oro1_: アイスリンク仙台HP NEW OPEN✨\\nhttps://t.co/...RT @sommy_mufc: I just received a notification...RT @Xbox: Unmask the newest DLC and play as Ob...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
24RT @AlbaniaOC: #PaseDeLista \"NO QUEREMOS TERMI...@apple_nasty Считаю, что мастера должны давать...Ab Version 1.51 kann Microsoft ToDo mit mehrer...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
25RT @KanaNakanishi: https://t.co/zLnPfc9g5QRT @layzhang: I caught up with @travismills on...Ergebnis des Schultages: Der Unterschied zwisc...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
26RT @talesof_therays: 【お知らせ】\\nこんばんは。運営です。\\n続けてコ...For those who want to look more of chump than ...RT @WSJ: Opinion: The integrity of U.S. defens...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
27@suspiciousbees +10 hpRT @Beats1: China's @layzhang is on with @trav...Capital Investment Services Of America Decreas...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
28RT @toukenmovie2019: 【応援上映】3月に入ってからも応援上映が続きます!...RT @layzhang: I caught up with @travismills on...RT @avgorkemgokce: Dünyanın en itibarlı markal...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
29RT @talesof_therays: 【お知らせ】\\nこんばんは。運営です。\\n続けてコ...https://t.co/6G4y8w9WeYJe m'éclate sur #CSRRacing pour Windows, tu vi...Asus presenta il nuovo GS30 https://t.co/7AXI...
...............
60@suama2001 ご参加ありがとうございます!!\\n抽選結果はムービーをご覧ください!\\...RT @nutpinenutpine: [애플 공홈에서 아이맥을 구입했는데 중고가 배송...RT @kitgurupress: We’ll be seeing Microsoft’s ...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
61@mondo1959 鵜飼さんこんばんわ!元気になられたようで何よりです😂でもご無理なさらぬ...RT @layzhang: I caught up with @travismills on...RT @hirax: 紙の「新聞」を読んで面白かった一節。(MicrosoftのHolole...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
62RT @HP_gurume: \フォロー&RTで応募/\\n✨ゴー☆ジャスが宴会にきてくれる✨...https://t.co/RZ8fWLv3o9RT @NITE2MU: ระบบ Hololens ที่พัฒนาโดย Microso...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
63お知らせです。\\n現在我龍のHP稼働停止しています。再稼働に向け取り組んでいますが、しばらく...RT @nutpinenutpine: [애플 공홈에서 아이맥을 구입했는데 중고가 배송...RT @spectatorindex: Most prestigious internshi...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
64RT @torasan_movie: 【号泣嗚咽応援上映】の開催が決定しました🐱\\n\\n皆様...RT @layzhang: I caught up with @travismills on...@lelangacc_erpe zap integromat, ada baru pake ...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
65RT @metao002: キングプロテア、HP4万近くまで上がるの草 https://t....@SHERIA_KKK Apple Watch Series 2!NIKE +が欲しいです!RT @maryjofoley: Windows Server IoT 2019 joins...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
66RT @Larissacostas: En el continente africano h...@Apple_rmy46 中日が3位かHow building robots together is opening doors ...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
67RT @mononokean_tv: 【場面写】\\n公式HPにて第9話のあらすじを公開中☆\\...RT @layzhang: I caught up with @travismills on...Microsoft reportedly exploring new partnership...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
68RT @pfeasy: レベル15のプロテアHP4653でスキル1の無限増殖Lv5を発動させ...The latest #SoccerPM podcast is available now!...From retailers to automotive manufacturers, le...A budget friendly smartphone made for you. Cal...
69RT @appmediafgo: 【プロテアの増殖について】\\n①スキルで毎ターン[増殖]状...RT @UnicornWal: 🎁 #GIVEAWAY : REMPORTE UN SWEA...RT @KYK_Sakarya: Muhammed Fatih Safitürk Yurdu...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
70RT @PartaiSocmed: Bagi teman2 yg belum sempat ...@gowonthecreator i think you really have to se...We’ll be seeing Microsoft’s PC gaming improvem...Which one do I buy? 🤔 the Asus has height adju...
71@tomotan999 ありがとうでーす!☺️🎶\\nさわやか是非一度は行ってみてくださいー!...RT @layzhang: I caught up with @travismills on...@ireaderinokun In 2017 i attended a Microsoft ...RT @DINOMARKET: Cuma mau kasih tau Asus Zenfon...
72RT @appmediafgo: 【プロテアの増殖について】\\n①スキルで毎ターン[増殖]状...RT @layzhang: I caught up with @travismills on...\"Microsoft and VMware are working on a partner...RT @CMG_eSports: Setup in need of an upgrade? ...
73RT @6hisui0: 記録更新キタ━━━━(゚∀゚)━━━━!! https://t.c...Descubren el reto mensual para el Día de la Mu...https://t.co/7ARNvgg46f Philips showcases uniq...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
74@okimotoaona あけとくか🤦‍♀️RT @arianaonchart: .@ArianaGrande's \"7 rings\" ...Announcing Azure Integration Service Environme...#ASUS #ZenFone now supported #architectural ht...
75Produk ECO RACING dan Peluang usahanya :\\n\\nht...If you are an Athlete and you think your highl...Todos los contenidos de Halo Reach, gratis en ...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
76RT @mayla_classic: ■ ノベルティ ■\\n\\n今しか手に入らない\\nマイラ...RT @qikipedia: One of the alert sounds on Mac ...Become MCSD Certified: Advantages of Passing Y...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
77RT @appmediafgo: 【プロテアの増殖について】\\n①スキルで毎ターン[増殖]状...RT @autaApp: Do you need your refrigerator, st...Get started with Microsoft 365 Business #busin...@derpingard but Lyra then you totally cannot u...
78.@BlackGirlsCode will inspire the next generat...RT @CyberDyne__lnc: 🖥懸賞&プレゼントキャンペーン📱\\n\\n『Apple...Microsoft giving us Jedi Academy and Republic ...@yourguymat Asus.... amooor\\n\\nhttps://t.co/x4...
79せっかく観音1スキでチマチマとHP削って、あと1、2発って\\n所でタワー下へ逃げ込む太白を、...RT @nutpinenutpine: [애플 공홈에서 아이맥을 구입했는데 중고가 배송...RT @ahmedjr_16: 35 Best #IT Training &amp; #Ce...RT @DeanAzman_: Aku nak amek course computer e...
80RT @talesof_therays: 【お知らせ】\\nこんばんは。運営です。\\n続けてコ...Chris Williamson: Tom Watson demands Labour su...RT @imcdnzl: The pitching process is broken - ...RT @CMG_eSports: Setup in need of an upgrade? ...
81普段数値順とか見ないから気づかんかったけど、ATK順だと上40は☆5なのにHP順で上20に入...RT @bungosd_anime: 【INFO】3/13(水)から全国の一部郵便局にて「文...RT @VWGroup_DE: Nur noch zwei Stunden bis zum ...https://t.co/uHkFFhBxO3 ASUS ROG Strix RTX 208...
82RT @Granblue_GW: ◆2年生チーム最終性能まとめ\\n最終後\\n・奥義演出が豪華...جمعت 190 نجمة في لعبة #كلمات_متقاطعة\\nاندرويد ...#EnterpriseResourcePlanning, a business manage...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
83カンストダメ(三枚目はHPダメージアップ無しの数値) https://t.co/GkcndJ...RT @layzhang: I caught up with @travismills on...RT @TomoboxHQ: We're going live! Tomorrow at 8...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
84RT @HP_gurume: \フォロー&リツイートで応募完了/\\nウコンドリンク5本が4名...ほんまええ曲やな https://t.co/ci4hvoaGxIAko lang naman yung taga next sa microsoft , l...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
85RT @DQ_BUILDERS2: DQビルダーズ2の追加DLC第1弾「和風パック」の詳細内...I’m in love I’m in love with a girl that body ...Menlo Advisors Holding in Microsoft $MSFT Has ...@ASUS_ZenBlog コレクションに欲しいけど実用にはキツそう!
86RT @torasan_movie: 【号泣嗚咽応援上映】の開催が決定しました🐱\\n\\n皆様...#socialmedia Apple : des abonnements à des tar...В Microsoft, предположительно, работают над во...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
87RT @appmediafgo: 【プロテアの増殖について】\\n①スキルで毎ターン[増殖]状...RT @layzhang: I caught up with @travismills on...RT @ben_mwong: ตามเรื่อง #พรบไซเบอร์ แล้วลองมา...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
88@blackluw3 今はちょっと食べる気力すらないですね…╭(›´ω`‹ )╮\\nでも何と...RT @Edinarcoin_ID: 🔺 Apple Taps Blockchain unt...Our Microsoft Project Level 2 course will buil...RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4...
89RT @talesof_therays: 【お知らせ】\\nこんばんは。運営です。\\n続けてコ...RT @maaku_p17n: 「アポリアを穿つ」の配信が、各配信サイト(iTunesやAp...Instantly restore your Azure Virtual Machines ...RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An...
\n", + "

90 rows × 4 columns

\n", + "
" + ], + "text/plain": [ + " hp \\\n", + "0 RT @talesof_therays: 【お知らせ】\\nこんばんは。運営です。\\n続けてコ... \n", + "1 RT @torasan_movie: 【号泣嗚咽応援上映】の開催が決定しました🐱\\n\\n皆様... \n", + "2 RT @Granblue_GW: ◆2年生チーム最終性能まとめ\\n最終後\\n・奥義演出が豪華... \n", + "3 RT @kfyyh0927: インディ開幕まで あと 10日 じゃ!! (写真:佐藤琢磨公式... \n", + "4 280. 이시다 아유미, 사야시 리호 https://t.co/PHzacskbpz \n", + "5 🇺🇸ミッキーのオムツケーキは大人気です👶🎉\\n.\\n男の子の出産祝いにどうぞ😊✨ https... \n", + "6 RT @Granblue_GW: ◆2年生チーム最終性能まとめ\\n最終後\\n・奥義演出が豪華... \n", + "7 Que peligro tan hp, no sabía q los médicos ten... \n", + "8 RT @Suharno41747558: HARNO BADUT: menyewakan,... \n", + "9 RT @Granblue_GW: ◆2年生チーム最終性能まとめ\\n最終後\\n・奥義演出が豪華... \n", + "10 @EhhItsOk @KylePlantEmoji That's 1 hp per step... \n", + "11 RT @mashio_fuguta: 【譲渡/お譲り】【拡散希望】\\n2019年3月23日(... \n", + "12 @hp_hp25 闇が深い!? \n", + "13 RT @Suharno41747558: HARNO BADUT: menyewakan,... \n", + "14 RT @Vampiroperver: 🔴🔴🔴🔴🤣🤣🤣En Cadena Internacio... \n", + "15 RT @toukenmovie2019: 【応援上映】3月に入ってからも応援上映が続きます!... \n", + "16 RT @Suharno41747558: HARNO BADUT: menyewakan,... \n", + "17 RT @Granblue_GW: ◆2年生チーム最終性能まとめ\\n最終後\\n・奥義演出が豪華... \n", + "18 Ujung2ny cm main hp ntn film buka ig wa line b... \n", + "19 RT @FujifilmJP_sp: 教室を思い出写真でいっぱいに。\\n#教室アルバム アイ... \n", + "20 RT @toukenmovie2019: 【応援上映】3月に入ってからも応援上映が続きます!... \n", + "21 RT @HP_gurume: \フォロー&リツイートで応募完了/\\nウコンドリンク5本が4名... \n", + "22 気になってスキルマにしたけど毎ターン3000もHP増えて草 \n", + "23 RT @oro1_: アイスリンク仙台HP NEW OPEN✨\\nhttps://t.co/... \n", + "24 RT @AlbaniaOC: #PaseDeLista \"NO QUEREMOS TERMI... \n", + "25 RT @KanaNakanishi: https://t.co/zLnPfc9g5Q \n", + "26 RT @talesof_therays: 【お知らせ】\\nこんばんは。運営です。\\n続けてコ... \n", + "27 @suspiciousbees +10 hp \n", + "28 RT @toukenmovie2019: 【応援上映】3月に入ってからも応援上映が続きます!... \n", + "29 RT @talesof_therays: 【お知らせ】\\nこんばんは。運営です。\\n続けてコ... \n", + ".. ... \n", + "60 @suama2001 ご参加ありがとうございます!!\\n抽選結果はムービーをご覧ください!\\... \n", + "61 @mondo1959 鵜飼さんこんばんわ!元気になられたようで何よりです😂でもご無理なさらぬ... \n", + "62 RT @HP_gurume: \フォロー&RTで応募/\\n✨ゴー☆ジャスが宴会にきてくれる✨... \n", + "63 お知らせです。\\n現在我龍のHP稼働停止しています。再稼働に向け取り組んでいますが、しばらく... \n", + "64 RT @torasan_movie: 【号泣嗚咽応援上映】の開催が決定しました🐱\\n\\n皆様... \n", + "65 RT @metao002: キングプロテア、HP4万近くまで上がるの草 https://t.... \n", + "66 RT @Larissacostas: En el continente africano h... \n", + "67 RT @mononokean_tv: 【場面写】\\n公式HPにて第9話のあらすじを公開中☆\\... \n", + "68 RT @pfeasy: レベル15のプロテアHP4653でスキル1の無限増殖Lv5を発動させ... \n", + "69 RT @appmediafgo: 【プロテアの増殖について】\\n①スキルで毎ターン[増殖]状... \n", + "70 RT @PartaiSocmed: Bagi teman2 yg belum sempat ... \n", + "71 @tomotan999 ありがとうでーす!☺️🎶\\nさわやか是非一度は行ってみてくださいー!... \n", + "72 RT @appmediafgo: 【プロテアの増殖について】\\n①スキルで毎ターン[増殖]状... \n", + "73 RT @6hisui0: 記録更新キタ━━━━(゚∀゚)━━━━!! https://t.c... \n", + "74 @okimotoaona あけとくか🤦‍♀️ \n", + "75 Produk ECO RACING dan Peluang usahanya :\\n\\nht... \n", + "76 RT @mayla_classic: ■ ノベルティ ■\\n\\n今しか手に入らない\\nマイラ... \n", + "77 RT @appmediafgo: 【プロテアの増殖について】\\n①スキルで毎ターン[増殖]状... \n", + "78 .@BlackGirlsCode will inspire the next generat... \n", + "79 せっかく観音1スキでチマチマとHP削って、あと1、2発って\\n所でタワー下へ逃げ込む太白を、... \n", + "80 RT @talesof_therays: 【お知らせ】\\nこんばんは。運営です。\\n続けてコ... \n", + "81 普段数値順とか見ないから気づかんかったけど、ATK順だと上40は☆5なのにHP順で上20に入... \n", + "82 RT @Granblue_GW: ◆2年生チーム最終性能まとめ\\n最終後\\n・奥義演出が豪華... \n", + "83 カンストダメ(三枚目はHPダメージアップ無しの数値) https://t.co/GkcndJ... \n", + "84 RT @HP_gurume: \フォロー&リツイートで応募完了/\\nウコンドリンク5本が4名... \n", + "85 RT @DQ_BUILDERS2: DQビルダーズ2の追加DLC第1弾「和風パック」の詳細内... \n", + "86 RT @torasan_movie: 【号泣嗚咽応援上映】の開催が決定しました🐱\\n\\n皆様... \n", + "87 RT @appmediafgo: 【プロテアの増殖について】\\n①スキルで毎ターン[増殖]状... \n", + "88 @blackluw3 今はちょっと食べる気力すらないですね…╭(›´ω`‹ )╮\\nでも何と... \n", + "89 RT @talesof_therays: 【お知らせ】\\nこんばんは。運営です。\\n続けてコ... \n", + "\n", + " apple \\\n", + "0 Apple CarPlay: Display im Auto konfigurieren h... \n", + "1 RT @layzhang: I caught up with @travismills on... \n", + "2 ➜Yuuko Hirose -WIND- https://t.co/WlTPeZ2EZj #... \n", + "3 RT @layzhang: I caught up with @travismills on... \n", + "4 RT @yaruki_arimi: \Podcastの最新話でたよ!/\\n\\n今週は「親友の... \n", + "5 RT @layzhang: I caught up with @travismills on... \n", + "6 RT @green_tea_niji: 声優 陶山恵実里さんが歌う\\nリフレクトムーンの新曲... \n", + "7 RT @layzhang: I caught up with @travismills on... \n", + "8 RT @TaylorMadeGolf: Special guest @NiallOffici... \n", + "9 RT @layzhang: I caught up with @travismills on... \n", + "10 RT @colopl_dreaming: 💿ゆめライブCD情報💿\\n\\n3ndシングル「Ma... \n", + "11 RT @EDinarWorldwide: 🔺 Apple Taps Blockchain t... \n", + "12 RT @layzhang: I caught up with @travismills on... \n", + "13 <silently eats an apple> \n", + "14 RT @nutpinenutpine: [애플 공홈에서 아이맥을 구입했는데 중고가 배송... \n", + "15 RT @Dominikow_: Por algum acaso o orixá pra qu... \n", + "16 @solodallamente @FjonaCakalli vabbè cosa c’ent... \n", + "17 Is Spotify really that much better than Apple ... \n", + "18 RT @layzhang: I caught up with @travismills on... \n", + "19 RT @layzhang: I caught up with @travismills on... \n", + "20 RT @qikipedia: One of the alert sounds on Mac ... \n", + "21 RT @layzhang: I caught up with @travismills on... \n", + "22 Zuckerberg reportedly told Facebook execs to u... \n", + "23 RT @sommy_mufc: I just received a notification... \n", + "24 @apple_nasty Считаю, что мастера должны давать... \n", + "25 RT @layzhang: I caught up with @travismills on... \n", + "26 For those who want to look more of chump than ... \n", + "27 RT @Beats1: China's @layzhang is on with @trav... \n", + "28 RT @layzhang: I caught up with @travismills on... \n", + "29 https://t.co/6G4y8w9WeY \n", + ".. ... \n", + "60 RT @nutpinenutpine: [애플 공홈에서 아이맥을 구입했는데 중고가 배송... \n", + "61 RT @layzhang: I caught up with @travismills on... \n", + "62 https://t.co/RZ8fWLv3o9 \n", + "63 RT @nutpinenutpine: [애플 공홈에서 아이맥을 구입했는데 중고가 배송... \n", + "64 RT @layzhang: I caught up with @travismills on... \n", + "65 @SHERIA_KKK Apple Watch Series 2!NIKE +が欲しいです! \n", + "66 @Apple_rmy46 中日が3位か \n", + "67 RT @layzhang: I caught up with @travismills on... \n", + "68 The latest #SoccerPM podcast is available now!... \n", + "69 RT @UnicornWal: 🎁 #GIVEAWAY : REMPORTE UN SWEA... \n", + "70 @gowonthecreator i think you really have to se... \n", + "71 RT @layzhang: I caught up with @travismills on... \n", + "72 RT @layzhang: I caught up with @travismills on... \n", + "73 Descubren el reto mensual para el Día de la Mu... \n", + "74 RT @arianaonchart: .@ArianaGrande's \"7 rings\" ... \n", + "75 If you are an Athlete and you think your highl... \n", + "76 RT @qikipedia: One of the alert sounds on Mac ... \n", + "77 RT @autaApp: Do you need your refrigerator, st... \n", + "78 RT @CyberDyne__lnc: 🖥懸賞&プレゼントキャンペーン📱\\n\\n『Apple... \n", + "79 RT @nutpinenutpine: [애플 공홈에서 아이맥을 구입했는데 중고가 배송... \n", + "80 Chris Williamson: Tom Watson demands Labour su... \n", + "81 RT @bungosd_anime: 【INFO】3/13(水)から全国の一部郵便局にて「文... \n", + "82 جمعت 190 نجمة في لعبة #كلمات_متقاطعة\\nاندرويد ... \n", + "83 RT @layzhang: I caught up with @travismills on... \n", + "84 ほんまええ曲やな https://t.co/ci4hvoaGxI \n", + "85 I’m in love I’m in love with a girl that body ... \n", + "86 #socialmedia Apple : des abonnements à des tar... \n", + "87 RT @layzhang: I caught up with @travismills on... \n", + "88 RT @Edinarcoin_ID: 🔺 Apple Taps Blockchain unt... \n", + "89 RT @maaku_p17n: 「アポリアを穿つ」の配信が、各配信サイト(iTunesやAp... \n", + "\n", + " microsoft \\\n", + "0 RT @MSEurope: Great opportunity to know more a... \n", + "1 RT @WhiteBit6: Microsoft Wants to Help Make Yo... \n", + "2 RT @mtholfsen: Ready to get started with @Micr... \n", + "3 @Tessa_824 really out here using Microsoft wor... \n", + "4 @GarethBrown @ThomasMaurer That’s correct - ht... \n", + "5 THQ doing that AMA was dumb, but people from M... \n", + "6 RT @Xbox: Seven historic cars, seventy thousan... \n", + "7 RT @Bright: Getest: de #Hololens2 die je hand-... \n", + "8 RT @nullenc0de: Looks like I was only scraping... \n", + "9 RT @Xbox: The Season of the Dragon is upon us,... \n", + "10 RT @Siber_Bulten: Microsoft’un ABD ordusuyla y... \n", + "11 Sadarbībā ar @RigaTechGirls 6. martā, Microsof... \n", + "12 RT @diegompc: Telefónica convierte a Microsoft... \n", + "13 RT @nypost: Microsoft employees demand company... \n", + "14 The application of @HoloLens in the health sec... \n", + "15 Microsoft's answer to Chromebooks may be 'Lite... \n", + "16 RT @ArvinK: @shaun_riordan @APPSPolicyForum @O... \n", + "17 Microsoft’un ABD ordusuyla yaptığı anlaşma çal... \n", + "18 ExxonMobil leading the energy sector with its ... \n", + "19 @Rangor Hehe, well on the contrary, most of th... \n", + "20 Discover ways to extend your on-premises IT of... \n", + "21 Students can build apps bots and AI using Micr... \n", + "22 RT @MenzoFN: 🤑VOICI MON SHOP🤑\\nLes différents ... \n", + "23 RT @Xbox: Unmask the newest DLC and play as Ob... \n", + "24 Ab Version 1.51 kann Microsoft ToDo mit mehrer... \n", + "25 Ergebnis des Schultages: Der Unterschied zwisc... \n", + "26 RT @WSJ: Opinion: The integrity of U.S. defens... \n", + "27 Capital Investment Services Of America Decreas... \n", + "28 RT @avgorkemgokce: Dünyanın en itibarlı markal... \n", + "29 Je m'éclate sur #CSRRacing pour Windows, tu vi... \n", + ".. ... \n", + "60 RT @kitgurupress: We’ll be seeing Microsoft’s ... \n", + "61 RT @hirax: 紙の「新聞」を読んで面白かった一節。(MicrosoftのHolole... \n", + "62 RT @NITE2MU: ระบบ Hololens ที่พัฒนาโดย Microso... \n", + "63 RT @spectatorindex: Most prestigious internshi... \n", + "64 @lelangacc_erpe zap integromat, ada baru pake ... \n", + "65 RT @maryjofoley: Windows Server IoT 2019 joins... \n", + "66 How building robots together is opening doors ... \n", + "67 Microsoft reportedly exploring new partnership... \n", + "68 From retailers to automotive manufacturers, le... \n", + "69 RT @KYK_Sakarya: Muhammed Fatih Safitürk Yurdu... \n", + "70 We’ll be seeing Microsoft’s PC gaming improvem... \n", + "71 @ireaderinokun In 2017 i attended a Microsoft ... \n", + "72 \"Microsoft and VMware are working on a partner... \n", + "73 https://t.co/7ARNvgg46f Philips showcases uniq... \n", + "74 Announcing Azure Integration Service Environme... \n", + "75 Todos los contenidos de Halo Reach, gratis en ... \n", + "76 Become MCSD Certified: Advantages of Passing Y... \n", + "77 Get started with Microsoft 365 Business #busin... \n", + "78 Microsoft giving us Jedi Academy and Republic ... \n", + "79 RT @ahmedjr_16: 35 Best #IT Training & #Ce... \n", + "80 RT @imcdnzl: The pitching process is broken - ... \n", + "81 RT @VWGroup_DE: Nur noch zwei Stunden bis zum ... \n", + "82 #EnterpriseResourcePlanning, a business manage... \n", + "83 RT @TomoboxHQ: We're going live! Tomorrow at 8... \n", + "84 Ako lang naman yung taga next sa microsoft , l... \n", + "85 Menlo Advisors Holding in Microsoft $MSFT Has ... \n", + "86 В Microsoft, предположительно, работают над во... \n", + "87 RT @ben_mwong: ตามเรื่อง #พรบไซเบอร์ แล้วลองมา... \n", + "88 Our Microsoft Project Level 2 course will buil... \n", + "89 Instantly restore your Azure Virtual Machines ... \n", + "\n", + " asus \n", + "0 Asus Dual-Band 802.11ac WiFi Router for $40 + ... \n", + "1 【徵求】\\n雲林 斗南\\nASUS筆電充電器 19V\\n借用到3/1 \n", + "2 アメブロを更新しました。 『世界のPC大手、台湾のASUS、スマートフォン「ZenFone6... \n", + "3 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "4 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "5 世界のPC大手、台湾のASUS、スマートフォン「ZenFone6」を発表? https://... \n", + "6 ASUS Zenfone 5 Lite - Rouge\\n\\nASUS Zenfone 5 ... \n", + "7 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "8 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "9 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "10 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "11 @togihara 動画だけで熱持ちますよ。。。(Nexus7のほうがマシレベルっす)\\n↓... \n", + "12 @Chiseldrs HAHAHA😂😂😂 asus \n", + "13 @ASUS_ROG_FR @lecomptoir Vous devriez faire ju... \n", + "14 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "15 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "16 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "17 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "18 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "19 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "20 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "21 Polewali kurang apalagi sdh ada pusat IT dan s... \n", + "22 RT @Okama_Sorteos: #SORTEO RTX 2060\\n\\n1️⃣ RT\\... \n", + "23 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "24 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "25 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "26 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "27 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "28 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "29 Asus presenta il nuovo GS30 https://t.co/7AXI... \n", + ".. ... \n", + "60 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "61 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "62 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "63 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "64 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "65 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "66 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "67 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "68 A budget friendly smartphone made for you. Cal... \n", + "69 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "70 Which one do I buy? 🤔 the Asus has height adju... \n", + "71 RT @DINOMARKET: Cuma mau kasih tau Asus Zenfon... \n", + "72 RT @CMG_eSports: Setup in need of an upgrade? ... \n", + "73 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "74 #ASUS #ZenFone now supported #architectural ht... \n", + "75 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "76 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "77 @derpingard but Lyra then you totally cannot u... \n", + "78 @yourguymat Asus.... amooor\\n\\nhttps://t.co/x4... \n", + "79 RT @DeanAzman_: Aku nak amek course computer e... \n", + "80 RT @CMG_eSports: Setup in need of an upgrade? ... \n", + "81 https://t.co/uHkFFhBxO3 ASUS ROG Strix RTX 208... \n", + "82 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "83 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "84 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "85 @ASUS_ZenBlog コレクションに欲しいけど実用にはキツそう! \n", + "86 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "87 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "88 RT @Clarkdale_f: ハードオフで電源が入らないとされているジャンクPCを5,4... \n", + "89 RT @ASUSJapan: 【ASUS Store Akasaka 1st Year An... \n", + "\n", + "[90 rows x 4 columns]" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "tweet_text = [[tweet.text for tweet in tweets] for tweets in results]\n", + "reshaped = [[] for i in range(shortest_list)]\n", + "\n", + "for item in tweet_text:\n", + " index = 0\n", + " for tweet in item:\n", + " reshaped[index].append(tweet)\n", + " if index == shortest_list - 1:\n", + " break\n", + " index += 1\n", + " \n", + "data = pd.DataFrame(data=reshaped, columns= targets)\n", + "\n", + "display(data)" + ] + }, + { + "cell_type": "code", + "execution_count": 94, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 69 + }, + "colab_type": "code", + "id": "6k_z5lpRIN4t", + "outputId": "e5f77812-a407-4ed0-8198-240dd01b2bec" + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[nltk_data] Downloading package vader_lexicon to\n", + "[nltk_data] C:\\Users\\INYANG\\AppData\\Roaming\\nltk_data...\n", + "[nltk_data] Package vader_lexicon is already up-to-date!\n" + ] + }, + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": 94, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import nltk\n", + "nltk.download('vader_lexicon')" + ] + }, + { + "cell_type": "code", + "execution_count": 95, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 1969 + }, + "colab_type": "code", + "id": "kQiYGQEqIZ3w", + "outputId": "35c11ad4-4e98-4d25-c32a-0b627a3e5d90" + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0}\n" + ] + } + ], + "source": [ + "SIA = SentimentIntensityAnalyzer()\n", + "\n", + "sentiments = {}\n", + "for target in targets:\n", + " sentiments[target] = []\n", + " \n", + " for row in data[target]:\n", + " polarity = SIA.polarity_scores(row)\n", + " sentiments[target].append(polarity)\n", + "\n", + "print((sentiments[targets[0]])[2])\n", + "# se = pd.Series(listy)\n", + "# data['polarity'] = se.values\n", + "\n", + "# display(data.head(100))" + ] + }, + { + "cell_type": "code", + "execution_count": 96, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "hp {'pos': 0.7977777777777778, 'neg': 0.5266666666666666, 'comp': 0.9940000000000001}\n", + "apple {'pos': 3.6255555555555556, 'neg': 0.9944444444444445, 'comp': 6.476222222222224}\n", + "microsoft {'pos': 6.8133333333333335, 'neg': 1.9555555555555555, 'comp': 10.70622222222222}\n", + "asus {'pos': 2.01, 'neg': 1.5288888888888887, 'comp': 1.2690000000000001}\n" + ] + } + ], + "source": [ + "cummulative_sentiments = {}\n", + "\n", + "for key in sentiments:\n", + " pos = 0\n", + " neg = 0\n", + " comp = 0\n", + " for row in sentiments[key]:\n", + " pos += row['pos']\n", + "# print(pos)\n", + " neg += row['neg']\n", + " comp += row['compound']\n", + " \n", + " average_pos = (pos/len(sentiments[key]))*100 #CONVERT VALUES TO PERCENTAGE VALUE\n", + " average_neg = (neg/len(sentiments[key]))*100\n", + " average_comp = (comp/len(sentiments[key]))*100 if (comp/len(sentiments[key]))*100 > 0 else 0\n", + " \n", + " cummulative_sentiments[key] = {\"pos\" : average_pos, \"neg\" : average_neg, \"comp\" : average_comp}\n", + "for target in targets:\n", + " \n", + " print(target, cummulative_sentiments[target])\n", + "# print('Positive :',average_pos, 'Negative :', average_neg, 'Compound :', average_comp)" + ] + }, + { + "cell_type": "code", + "execution_count": 90, + "metadata": {}, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXQAAAD8CAYAAABn919SAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4zLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvIxREBQAADLdJREFUeJzt3X+MpIVdx/H3p6CCpTY0LCdpwWuRlmIPrnIlRqqCpA0aDWDSVNKYa9L0tKEGEk3F9g9J/FGi0Wq0gqelXGuhEiuChCiU/ri2AcsdXrlDQFoERZA7xEix8vvrH/Ocbo/b29nd2R32e+9XcpmZZ56d+e7OzXufeebHpqqQJK1+L5v2AJKkyTDoktSEQZekJgy6JDVh0CWpCYMuSU0YdElqwqBLUhMGXZKaOHQlr+yoo46qtWvXruRVStKqt3379seqama+9VY06GvXrmXbtm0reZWStOoleXCc9dzlIklNGHRJasKgS1ITBl2SmjDoktSEQZekJgy6JDVh0CWpCYMuSU2s6DtFJb20rduybtojtLVz485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8TuHPFv4GD095dLicCZwOfGHYNBPitJHcCn2X0eURrgB8Brq2qb1XVE/imuUl4K3B1VT1fVY8CXwTeMpx3e1U9UlVPA98AbhqW72QU8b2uqaoXquo+RuE/kbnvawfyDHDDcHz7rOs4Hbh6OP7JhX6D02bQx3MXoy02AKrqAuAsYIb9f6YNB1gO+/nMG62cqrqV0RbiDPCu4fDUqloPPMpoKx68nRbrLuDU/Sw/0H3i6VnHX5h1+gW+fU/CvrdJHeByn+PbG3fYrOPP1v+/Zvv5ea5j1TDo4/kccFiS981a9t3D4VZGUWB4mHcccO+Yy98EnLwC82uW4WH5IcB/AK8EdlfVs8O+170fgrQVOG94zuMVwE9PZ9pV6XPAdyV5794FSd7C6HmLdyY5JMkMo0erX13gZb8jycuG/eqv48D3tQeA9cP6xzL6yO/5fIXRrjb2XuZq4j70MVRVJTkX+EiSDwB7gP8GfgW4Drg8yU5GWwTvrqqnk/zxHMsvAz4+PMTfwcL/Q2tx9u5Dh9EW3caqej7Jp4C/SbKN0e1xD0BV3TE8ab2D0UP4L01j6NVouL+cB/x+Rn/J7ClGcb0IOAL4GqOt4A9U1b8Pv2DHdS+jXTVrgF+oqqcOcF/7CvDPjHbb7GK856suBK4a9t1/ZgFzvST4TlFJq0KSK4Ebquovpz3LS5W7XCSpCbfQJakJt9AlqQmDLklNGHRJasKgS1ITBl2SmjDoktTE/wIgcdLFx162pgAAAABJRU5ErkJggg==\n", + "text/plain": [ + "
" + ] + }, + "metadata": { + "needs_background": "light" + }, + "output_type": "display_data" + } + ], + "source": [ + "for target in targets:\n", + " plt.bar(height = [cummulative_sentiments[target][\"pos\"], cummulative_sentiments[target][\"neg\"], cummulative_sentiments[target][\"comp\"]], x = [ \"Good\", \"Bad\", \"Compound\"])\n", + "\n", + " plt.plot()\n" + ] + } + ], + "metadata": { + "colab": { + "name": "Untitled29.ipynb", + "provenance": [], + "version": "0.3.2" + }, + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.7.0" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/Sentiment_Analysis.ipynb b/Sentiment_Analysis.ipynb index 24cb3a5..52fda9c 100644 --- a/Sentiment_Analysis.ipynb +++ b/Sentiment_Analysis.ipynb @@ -1,761 +1,811 @@ { - "nbformat": 4, - "nbformat_minor": 0, - "metadata": { + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": { "colab": { - "name": "Untitled29.ipynb", - "version": "0.3.2", - "provenance": [] + "base_uri": "https://localhost:8080/", + "height": 387 }, - "kernelspec": { - "name": "python3", - "display_name": "Python 3" - } + "colab_type": "code", + "id": "nMx2UqrJFyw-", + "outputId": "2a1da4e3-31d4-401f-f6b0-9f693ad8d9a6" + }, + "outputs": [], + "source": [ + "# !pip install pandas\n", + "# !pip install tweepy\n", + "# !pip install vaderSentiment\n", + "# !pip install tweepy\n", + "# !pip install PyHamcrest\n", + "# !pip install twython" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "colab": {}, + "colab_type": "code", + "id": "VldzdttbGRT6" + }, + "outputs": [], + "source": [ + "import tweepy\n", + "import pandas as pd\n", + "from nltk.sentiment.vader import SentimentIntensityAnalyzer\n", + "import matplotlib.pyplot as plt" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "colab": {}, + "colab_type": "code", + "id": "xoeDu5guGo-N" + }, + "outputs": [], + "source": [ + "#My Twitter API Authentication Variables\n", + "consumer_key = ''\n", + "consumer_secret = ''\n", + "access_token = ''\n", + "access_token_secret = ''" + ] }, - "cells": [ + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 376 + }, + "colab_type": "code", + "id": "i41rn4KkG-iz", + "outputId": "0243083f-626d-4df7-e974-f51e1e9d7790" + }, + "outputs": [ { - "metadata": { - "id": "nMx2UqrJFyw-", - "colab_type": "code", - "outputId": "2a1da4e3-31d4-401f-f6b0-9f693ad8d9a6", - "colab": { - "base_uri": "https://localhost:8080/", - "height": 387 - } - }, - "cell_type": "code", - "source": [ - "!pip install pandas\n", - "!pip install tweepy\n", - "!pip install vaderSentiment" + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Tweets
0RT @BeyLegion: Guest list for Beyoncé &amp; JA...
1Look at the music gods tryna bless us after a ...
2RT @__Pchs: Beyoncé is really a celebrity even...
3RT @aluapgf: quando vc é fã da Beyoncé e do Na...
4RT @AdamDriverFiles: When it’s been a long awa...
5RT @dietanimalfries: Today is Erykah Badu’s bi...
6RT @aluapgf: quando vc é fã da Beyoncé e do Na...
7RT @conrrrad: fun fact: beyoncé e jay-z si son...
8Deep down i act like I’m okay but i really wan...
9RT @seungwann: ONE OF THE MOST ICONIC AND FUNN...
\n", + "
" ], - "execution_count": 0, - "outputs": [ - { - "output_type": "stream", - "text": [ - "Requirement already satisfied: pandas in /usr/local/lib/python3.6/dist-packages (0.22.0)\n", - "Requirement already satisfied: python-dateutil>=2 in /usr/local/lib/python3.6/dist-packages (from pandas) (2.5.3)\n", - "Requirement already satisfied: numpy>=1.9.0 in /usr/local/lib/python3.6/dist-packages (from pandas) (1.14.6)\n", - "Requirement already satisfied: pytz>=2011k in /usr/local/lib/python3.6/dist-packages (from pandas) (2018.9)\n", - "Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.6/dist-packages (from python-dateutil>=2->pandas) (1.11.0)\n", - "Requirement already satisfied: tweepy in /usr/local/lib/python3.6/dist-packages (3.6.0)\n", - "Requirement already satisfied: six>=1.10.0 in /usr/local/lib/python3.6/dist-packages (from tweepy) (1.11.0)\n", - "Requirement already satisfied: requests-oauthlib>=0.7.0 in /usr/local/lib/python3.6/dist-packages (from tweepy) (1.2.0)\n", - "Requirement already satisfied: PySocks>=1.5.7 in /usr/local/lib/python3.6/dist-packages (from tweepy) (1.6.8)\n", - "Requirement already satisfied: requests>=2.11.1 in /usr/local/lib/python3.6/dist-packages (from tweepy) (2.18.4)\n", - "Requirement already satisfied: oauthlib>=3.0.0 in /usr/local/lib/python3.6/dist-packages (from requests-oauthlib>=0.7.0->tweepy) (3.0.0)\n", - "Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/local/lib/python3.6/dist-packages (from requests>=2.11.1->tweepy) (1.22)\n", - "Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.6/dist-packages (from requests>=2.11.1->tweepy) (2018.11.29)\n", - "Requirement already satisfied: idna<2.7,>=2.5 in /usr/local/lib/python3.6/dist-packages (from requests>=2.11.1->tweepy) (2.6)\n", - "Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.6/dist-packages (from requests>=2.11.1->tweepy) (3.0.4)\n", - "Collecting vaderSentiment\n", - "\u001b[?25l Downloading https://files.pythonhosted.org/packages/86/9e/c53e1fc61aac5ee490a6ac5e21b1ac04e55a7c2aba647bb8411c9aadf24e/vaderSentiment-3.2.1-py2.py3-none-any.whl (125kB)\n", - "\u001b[K 100% |████████████████████████████████| 133kB 4.8MB/s \n", - "\u001b[?25hInstalling collected packages: vaderSentiment\n", - "Successfully installed vaderSentiment-3.2.1\n" - ], - "name": "stdout" - } + "text/plain": [ + " Tweets\n", + "0 RT @BeyLegion: Guest list for Beyoncé & JA...\n", + "1 Look at the music gods tryna bless us after a ...\n", + "2 RT @__Pchs: Beyoncé is really a celebrity even...\n", + "3 RT @aluapgf: quando vc é fã da Beyoncé e do Na...\n", + "4 RT @AdamDriverFiles: When it’s been a long awa...\n", + "5 RT @dietanimalfries: Today is Erykah Badu’s bi...\n", + "6 RT @aluapgf: quando vc é fã da Beyoncé e do Na...\n", + "7 RT @conrrrad: fun fact: beyoncé e jay-z si son...\n", + "8 Deep down i act like I’m okay but i really wan...\n", + "9 RT @seungwann: ONE OF THE MOST ICONIC AND FUNN..." ] + }, + "metadata": {}, + "output_type": "display_data" }, { - "metadata": { - "id": "VldzdttbGRT6", - "colab_type": "code", - "colab": {} - }, - "cell_type": "code", - "source": [ - "import tweepy\n", - "import pandas as pd\n", - "from nltk.sentiment.vader import SentimentIntensityAnalyzer" - ], - "execution_count": 0, - "outputs": [] + "name": "stdout", + "output_type": "stream", + "text": [ + "2019-02-26 20:12:32\n" + ] + } + ], + "source": [ + "auth = tweepy.OAuthHandler(consumer_key, consumer_secret)\n", + "auth.set_access_token(access_token, access_token_secret)\n", + "\n", + "api = tweepy.API(auth)\n", + "\n", + "tweets = api.search('beyonce', count=200)\n", + "\n", + "\n", + "data = pd.DataFrame(data=[tweet.text for tweet in tweets], columns=['Tweets'])\n", + "\n", + "display(data.head(10))\n", + "\n", + "\n", + "print(tweets[0].created_at)\n" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 69 }, + "colab_type": "code", + "id": "6k_z5lpRIN4t", + "outputId": "e5f77812-a407-4ed0-8198-240dd01b2bec" + }, + "outputs": [ { - "metadata": { - "id": "xoeDu5guGo-N", - "colab_type": "code", - "colab": {} - }, - "cell_type": "code", - "source": [ - "#My Twitter API Authentication Variables\n", - "consumer_key = ''\n", - "consumer_secret = ''\n", - "access_token = ''\n", - "access_token_secret = ''" - ], - "execution_count": 0, - "outputs": [] + "name": "stdout", + "output_type": "stream", + "text": [ + "[nltk_data] Downloading package vader_lexicon to\n", + "[nltk_data] C:\\Users\\INYANG\\AppData\\Roaming\\nltk_data...\n", + "[nltk_data] Package vader_lexicon is already up-to-date!\n" + ] }, { - "metadata": { - "id": "i41rn4KkG-iz", - "colab_type": "code", - "outputId": "0243083f-626d-4df7-e974-f51e1e9d7790", - "colab": { - "base_uri": "https://localhost:8080/", - "height": 376 - } - }, - "cell_type": "code", - "source": [ - "auth = tweepy.OAuthHandler(consumer_key, consumer_secret)\n", - "auth.set_access_token(access_token, access_token_secret)\n", - "\n", - "api = tweepy.API(auth)\n", - "\n", - "tweets = api.search('Artificial Intelligence', count=200)\n", - "\n", - "\n", - "data = pd.DataFrame(data=[tweet.text for tweet in tweets], columns=['Tweets'])\n", - "\n", - "display(data.head(10))\n", - "\n", - "\n", - "print(tweets[0].created_at)\n" - ], - "execution_count": 0, - "outputs": [ - { - "output_type": "display_data", - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
Tweets
0#Banking&amp;Insurance https://t.co/JKIXuMzwEU...
1‘Businesses Will Not Be Able to Hide’: Spy Sat...
2RT @StevenDawsonSD: How #virtual assistants ar...
3RT @mikecoulson48: @SwotTyler @johnmcdonnellMP...
4RT @automeme: 4 Ways Artificial Intelligence C...
5Chefs, truck drivers beware: AI is coming for ...
6RT @StarCraft: This is it, ladies and gentleme...
7RT @StarCraft: This is it, ladies and gentleme...
8RT @NATS: In case you missed our announcement ...
9「NotePerformer」って,これかな.有料. | NotePerformer 3: ...
\n", - "
" - ], - "text/plain": [ - " Tweets\n", - "0 #Banking&Insurance https://t.co/JKIXuMzwEU...\n", - "1 ‘Businesses Will Not Be Able to Hide’: Spy Sat...\n", - "2 RT @StevenDawsonSD: How #virtual assistants ar...\n", - "3 RT @mikecoulson48: @SwotTyler @johnmcdonnellMP...\n", - "4 RT @automeme: 4 Ways Artificial Intelligence C...\n", - "5 Chefs, truck drivers beware: AI is coming for ...\n", - "6 RT @StarCraft: This is it, ladies and gentleme...\n", - "7 RT @StarCraft: This is it, ladies and gentleme...\n", - "8 RT @NATS: In case you missed our announcement ...\n", - "9 「NotePerformer」って,これかな.有料. | NotePerformer 3: ..." - ] - }, - "metadata": { - "tags": [] - } - }, - { - "output_type": "stream", - "text": [ - "2019-01-24 18:38:09\n" - ], - "name": "stdout" - } + "data": { + "text/plain": [ + "True" ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import nltk\n", + "nltk.download('vader_lexicon')" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 1969 }, + "colab_type": "code", + "id": "kQiYGQEqIZ3w", + "outputId": "35c11ad4-4e98-4d25-c32a-0b627a3e5d90" + }, + "outputs": [ { - "metadata": { - "id": "6k_z5lpRIN4t", - "colab_type": "code", - "outputId": "e5f77812-a407-4ed0-8198-240dd01b2bec", - "colab": { - "base_uri": "https://localhost:8080/", - "height": 69 - } - }, - "cell_type": "code", - "source": [ - "import nltk\n", - "nltk.download('vader_lexicon')" + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Tweetspolarity
0RT @BeyLegion: Guest list for Beyoncé &amp; JA...{'neg': 0.0, 'neu': 0.816, 'pos': 0.184, 'comp...
1Look at the music gods tryna bless us after a ...{'neg': 0.0, 'neu': 0.865, 'pos': 0.135, 'comp...
2RT @__Pchs: Beyoncé is really a celebrity even...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
3RT @aluapgf: quando vc é fã da Beyoncé e do Na...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
4RT @AdamDriverFiles: When it’s been a long awa...{'neg': 0.0, 'neu': 0.885, 'pos': 0.115, 'comp...
5RT @dietanimalfries: Today is Erykah Badu’s bi...{'neg': 0.0, 'neu': 0.607, 'pos': 0.393, 'comp...
6RT @aluapgf: quando vc é fã da Beyoncé e do Na...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
7RT @conrrrad: fun fact: beyoncé e jay-z si son...{'neg': 0.0, 'neu': 0.809, 'pos': 0.191, 'comp...
8Deep down i act like I’m okay but i really wan...{'neg': 0.111, 'neu': 0.515, 'pos': 0.374, 'co...
9RT @seungwann: ONE OF THE MOST ICONIC AND FUNN...{'neg': 0.0, 'neu': 0.688, 'pos': 0.312, 'comp...
10@akaworldwide Imagine her being the next Beyonce.{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
11DJ Khaled ft. Beyonce &amp; Jay Z - Digiwaxx M...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
12RT @ohyeatb: nah bitch fr, Beyonce get yo sist...{'neg': 0.48, 'neu': 0.52, 'pos': 0.0, 'compou...
13RT @abc13houston: 🎶Beyonce, can you handle thi...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
14RT @TheDailyShow: What do you do when you see ...{'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp...
15RT @ced_gaga16: Again.. Beyoncé’s version of A...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
16RT @smalltownandrew: Democrats partied with Be...{'neg': 0.0, 'neu': 0.797, 'pos': 0.203, 'comp...
17RT @dietanimalfries: Today is Erykah Badu’s bi...{'neg': 0.0, 'neu': 0.607, 'pos': 0.393, 'comp...
18RT @fourbeyk: BEYONCÉ E GAGA CHEGOU A HORA DE ...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
19RT @dietanimalfries: Today is Erykah Badu’s bi...{'neg': 0.0, 'neu': 0.607, 'pos': 0.393, 'comp...
20RT @CaucasianJames: beyonce wrote irreplaceabl...{'neg': 0.097, 'neu': 0.903, 'pos': 0.0, 'comp...
21RT @BeyLegion: .@BenRealVsWorld recaps his yea...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
22At this point,Beyoncé is the only unproblemati...{'neg': 0.0, 'neu': 0.738, 'pos': 0.262, 'comp...
23RT @HealthCoachJaye: @ciacobu @sloan_kettering...{'neg': 0.0, 'neu': 0.6, 'pos': 0.4, 'compound...
24RT @MidiaKPN: #KPNVideos | Vídeo de Katy Perry...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
25@RepBarbaraLee Gregory Meeks, Barbara Lee, Bob...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
26Noah centineo...Beyoncé inviting anybody https...{'neg': 0.0, 'neu': 0.635, 'pos': 0.365, 'comp...
27RT @_dxndi: What Beyoncé’s “No Angel” shoulda ...{'neg': 0.0, 'neu': 0.815, 'pos': 0.185, 'comp...
28RT @Bey_Legion: .@JeffBezos attend Beyoncé &am...{'neg': 0.0, 'neu': 0.803, 'pos': 0.197, 'comp...
29RT @UncleSego: Also im always on the black art...{'neg': 0.0, 'neu': 0.912, 'pos': 0.088, 'comp...
.........
44RT @BeyLegion: .@chadwickboseman, @KELLYROWLAN...{'neg': 0.0, 'neu': 0.847, 'pos': 0.153, 'comp...
45I wish I was the cockroach in Beyonce and Jay ...{'neg': 0.0, 'neu': 0.847, 'pos': 0.153, 'comp...
46@carlixann @qveenberr_ She told Beyoncé to mov...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
47@Trophyxt that was in a Beyonce song and you r...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
48RT @BeyLegion: .@BenRealVsWorld recaps his yea...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
49@MrBeyonceFan You can’t marry your way into a ...{'neg': 0.0, 'neu': 0.593, 'pos': 0.407, 'comp...
50RT @Kay_Mantanga: Beyoncé is becoming such a s...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
51RT @fourbeyk: BEYONCÉ E GAGA CHEGOU A HORA DE ...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
52RT @Paintwizard1: @NYAEYC @RepGregoryMeeks Gre...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
53........???? So become Beyoncé overnight? Hear...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
54nah bitch fr, Beyonce get yo sister before i c...{'neg': 0.542, 'neu': 0.458, 'pos': 0.0, 'comp...
55RT @BeyonceHard: Hannah Beachler, que trabalho...{'neg': 0.099, 'neu': 0.901, 'pos': 0.0, 'comp...
56RT @__Pchs: Beyoncé is really a celebrity even...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
57RT @BeyLegion: .@BenRealVsWorld recaps his yea...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
58🔥🔥🔥🔥🔥\\nBuy GHT token here at .000608 Eth = 1 G...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
59@NYAEYC @RepGregoryMeeks Gregory Meeks, Barbar...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
60RT @TheDailyShow: What do you do when you see ...{'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp...
61RT @aluapgf: quando vc é fã da Beyoncé e do Na...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
62RT @TheDailyShow: What do you do when you see ...{'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp...
63RT @faythegenius: So glad Beyoncé invented mus...{'neg': 0.0, 'neu': 0.68, 'pos': 0.32, 'compou...
64RT @seungwann: ONE OF THE MOST ICONIC AND FUNN...{'neg': 0.0, 'neu': 0.688, 'pos': 0.312, 'comp...
65eu amo tanto as musicas antigas da Beyoncé e d...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
66RT @BeyLegion: Guest list for Beyoncé &amp; JA...{'neg': 0.0, 'neu': 0.816, 'pos': 0.184, 'comp...
67RT @TheDailyShow: What do you do when you see ...{'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp...
68@lemonando Então, ela já fumou. E sim, prejudi...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
69RT @BeyonceHard: Hannah Beachler, que trabalho...{'neg': 0.099, 'neu': 0.901, 'pos': 0.0, 'comp...
70RT @fourbeyk: BEYONCÉ E GAGA CHEGOU A HORA DE ...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
71RT @TheDailyShow: What do you do when you see ...{'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp...
72RT @TheDailyShow: What do you do when you see ...{'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp...
73Olha o que a festa da Beyoncé nos proporcionou...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
\n", + "

74 rows × 2 columns

\n", + "
" ], - "execution_count": 0, - "outputs": [ - { - "output_type": "stream", - "text": [ - "[nltk_data] Error loading fr_lexicon: Package 'fr_lexicon' not found\n", - "[nltk_data] in index\n" - ], - "name": "stdout" - }, - { - "output_type": "execute_result", - "data": { - "text/plain": [ - "False" - ] - }, - "metadata": { - "tags": [] - }, - "execution_count": 21 - } + "text/plain": [ + " Tweets \\\n", + "0 RT @BeyLegion: Guest list for Beyoncé & JA... \n", + "1 Look at the music gods tryna bless us after a ... \n", + "2 RT @__Pchs: Beyoncé is really a celebrity even... \n", + "3 RT @aluapgf: quando vc é fã da Beyoncé e do Na... \n", + "4 RT @AdamDriverFiles: When it’s been a long awa... \n", + "5 RT @dietanimalfries: Today is Erykah Badu’s bi... \n", + "6 RT @aluapgf: quando vc é fã da Beyoncé e do Na... \n", + "7 RT @conrrrad: fun fact: beyoncé e jay-z si son... \n", + "8 Deep down i act like I’m okay but i really wan... \n", + "9 RT @seungwann: ONE OF THE MOST ICONIC AND FUNN... \n", + "10 @akaworldwide Imagine her being the next Beyonce. \n", + "11 DJ Khaled ft. Beyonce & Jay Z - Digiwaxx M... \n", + "12 RT @ohyeatb: nah bitch fr, Beyonce get yo sist... \n", + "13 RT @abc13houston: 🎶Beyonce, can you handle thi... \n", + "14 RT @TheDailyShow: What do you do when you see ... \n", + "15 RT @ced_gaga16: Again.. Beyoncé’s version of A... \n", + "16 RT @smalltownandrew: Democrats partied with Be... \n", + "17 RT @dietanimalfries: Today is Erykah Badu’s bi... \n", + "18 RT @fourbeyk: BEYONCÉ E GAGA CHEGOU A HORA DE ... \n", + "19 RT @dietanimalfries: Today is Erykah Badu’s bi... \n", + "20 RT @CaucasianJames: beyonce wrote irreplaceabl... \n", + "21 RT @BeyLegion: .@BenRealVsWorld recaps his yea... \n", + "22 At this point,Beyoncé is the only unproblemati... \n", + "23 RT @HealthCoachJaye: @ciacobu @sloan_kettering... \n", + "24 RT @MidiaKPN: #KPNVideos | Vídeo de Katy Perry... \n", + "25 @RepBarbaraLee Gregory Meeks, Barbara Lee, Bob... \n", + "26 Noah centineo...Beyoncé inviting anybody https... \n", + "27 RT @_dxndi: What Beyoncé’s “No Angel” shoulda ... \n", + "28 RT @Bey_Legion: .@JeffBezos attend Beyoncé &am... \n", + "29 RT @UncleSego: Also im always on the black art... \n", + ".. ... \n", + "44 RT @BeyLegion: .@chadwickboseman, @KELLYROWLAN... \n", + "45 I wish I was the cockroach in Beyonce and Jay ... \n", + "46 @carlixann @qveenberr_ She told Beyoncé to mov... \n", + "47 @Trophyxt that was in a Beyonce song and you r... \n", + "48 RT @BeyLegion: .@BenRealVsWorld recaps his yea... \n", + "49 @MrBeyonceFan You can’t marry your way into a ... \n", + "50 RT @Kay_Mantanga: Beyoncé is becoming such a s... \n", + "51 RT @fourbeyk: BEYONCÉ E GAGA CHEGOU A HORA DE ... \n", + "52 RT @Paintwizard1: @NYAEYC @RepGregoryMeeks Gre... \n", + "53 ........???? So become Beyoncé overnight? Hear... \n", + "54 nah bitch fr, Beyonce get yo sister before i c... \n", + "55 RT @BeyonceHard: Hannah Beachler, que trabalho... \n", + "56 RT @__Pchs: Beyoncé is really a celebrity even... \n", + "57 RT @BeyLegion: .@BenRealVsWorld recaps his yea... \n", + "58 🔥🔥🔥🔥🔥\\nBuy GHT token here at .000608 Eth = 1 G... \n", + "59 @NYAEYC @RepGregoryMeeks Gregory Meeks, Barbar... \n", + "60 RT @TheDailyShow: What do you do when you see ... \n", + "61 RT @aluapgf: quando vc é fã da Beyoncé e do Na... \n", + "62 RT @TheDailyShow: What do you do when you see ... \n", + "63 RT @faythegenius: So glad Beyoncé invented mus... \n", + "64 RT @seungwann: ONE OF THE MOST ICONIC AND FUNN... \n", + "65 eu amo tanto as musicas antigas da Beyoncé e d... \n", + "66 RT @BeyLegion: Guest list for Beyoncé & JA... \n", + "67 RT @TheDailyShow: What do you do when you see ... \n", + "68 @lemonando Então, ela já fumou. E sim, prejudi... \n", + "69 RT @BeyonceHard: Hannah Beachler, que trabalho... \n", + "70 RT @fourbeyk: BEYONCÉ E GAGA CHEGOU A HORA DE ... \n", + "71 RT @TheDailyShow: What do you do when you see ... \n", + "72 RT @TheDailyShow: What do you do when you see ... \n", + "73 Olha o que a festa da Beyoncé nos proporcionou... \n", + "\n", + " polarity \n", + "0 {'neg': 0.0, 'neu': 0.816, 'pos': 0.184, 'comp... \n", + "1 {'neg': 0.0, 'neu': 0.865, 'pos': 0.135, 'comp... \n", + "2 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "3 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "4 {'neg': 0.0, 'neu': 0.885, 'pos': 0.115, 'comp... \n", + "5 {'neg': 0.0, 'neu': 0.607, 'pos': 0.393, 'comp... \n", + "6 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "7 {'neg': 0.0, 'neu': 0.809, 'pos': 0.191, 'comp... \n", + "8 {'neg': 0.111, 'neu': 0.515, 'pos': 0.374, 'co... \n", + "9 {'neg': 0.0, 'neu': 0.688, 'pos': 0.312, 'comp... \n", + "10 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "11 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "12 {'neg': 0.48, 'neu': 0.52, 'pos': 0.0, 'compou... \n", + "13 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "14 {'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp... \n", + "15 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "16 {'neg': 0.0, 'neu': 0.797, 'pos': 0.203, 'comp... \n", + "17 {'neg': 0.0, 'neu': 0.607, 'pos': 0.393, 'comp... \n", + "18 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "19 {'neg': 0.0, 'neu': 0.607, 'pos': 0.393, 'comp... \n", + "20 {'neg': 0.097, 'neu': 0.903, 'pos': 0.0, 'comp... \n", + "21 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "22 {'neg': 0.0, 'neu': 0.738, 'pos': 0.262, 'comp... \n", + "23 {'neg': 0.0, 'neu': 0.6, 'pos': 0.4, 'compound... \n", + "24 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "25 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "26 {'neg': 0.0, 'neu': 0.635, 'pos': 0.365, 'comp... \n", + "27 {'neg': 0.0, 'neu': 0.815, 'pos': 0.185, 'comp... \n", + "28 {'neg': 0.0, 'neu': 0.803, 'pos': 0.197, 'comp... \n", + "29 {'neg': 0.0, 'neu': 0.912, 'pos': 0.088, 'comp... \n", + ".. ... \n", + "44 {'neg': 0.0, 'neu': 0.847, 'pos': 0.153, 'comp... \n", + "45 {'neg': 0.0, 'neu': 0.847, 'pos': 0.153, 'comp... \n", + "46 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "47 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "48 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "49 {'neg': 0.0, 'neu': 0.593, 'pos': 0.407, 'comp... \n", + "50 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "51 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "52 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "53 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "54 {'neg': 0.542, 'neu': 0.458, 'pos': 0.0, 'comp... \n", + "55 {'neg': 0.099, 'neu': 0.901, 'pos': 0.0, 'comp... \n", + "56 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "57 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "58 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "59 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "60 {'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp... \n", + "61 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "62 {'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp... \n", + "63 {'neg': 0.0, 'neu': 0.68, 'pos': 0.32, 'compou... \n", + "64 {'neg': 0.0, 'neu': 0.688, 'pos': 0.312, 'comp... \n", + "65 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "66 {'neg': 0.0, 'neu': 0.816, 'pos': 0.184, 'comp... \n", + "67 {'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp... \n", + "68 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "69 {'neg': 0.099, 'neu': 0.901, 'pos': 0.0, 'comp... \n", + "70 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "71 {'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp... \n", + "72 {'neg': 0.0, 'neu': 0.881, 'pos': 0.119, 'comp... \n", + "73 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", + "\n", + "[74 rows x 2 columns]" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "sid = SentimentIntensityAnalyzer()\n", + "\n", + "\n", + "listy = []\n", + "\n", + "for index, row in data.iterrows():\n", + " ss = sid.polarity_scores(row[\"Tweets\"])\n", + " listy.append(ss)\n", + " \n", + "se = pd.Series(listy)\n", + "data['polarity'] = se.values\n", + "\n", + "display(data.head(100))" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Positive : 10.405405405405402 Negative : 2.1945945945945944 Compound : 21.592972972972966\n" + ] + } + ], + "source": [ + "type(data['polarity'][4])\n", + "data['polarity'][4]\n", + "pos = 0\n", + "neg = 0\n", + "comp = 0\n", + "for row in data['polarity']:\n", + " pos += row['pos']\n", + " neg += row['neg']\n", + " comp += row['compound']\n", + " \n", + "average_pos = (pos/data['polarity'].size)*100\n", + "average_neg = (neg/data['polarity'].size)*100\n", + "average_comp = (comp/data['polarity'].size)*100 if (comp/data['polarity'].size)*100 > 0 else 0\n", + "\n", + "print('Positive :',average_pos, 'Negative :', average_neg, 'Compound :', average_comp)" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[]" ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" }, { - "metadata": { - "id": "kQiYGQEqIZ3w", - "colab_type": "code", - "outputId": "35c11ad4-4e98-4d25-c32a-0b627a3e5d90", - "colab": { - "base_uri": "https://localhost:8080/", - "height": 1969 - } - }, - "cell_type": "code", - "source": [ - "sid = SentimentIntensityAnalyzer()\n", - "\n", - "\n", - "listy = []\n", - "\n", - "for index, row in data.iterrows():\n", - " ss = sid.polarity_scores(row[\"Tweets\"])\n", - " listy.append(ss)\n", - " \n", - "se = pd.Series(listy)\n", - "data['polarity'] = se.values\n", - "\n", - "display(data.head(100))" - ], - "execution_count": 0, - "outputs": [ - { - "output_type": "display_data", - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
Tweetspolarity
0#Banking&amp;Insurance https://t.co/JKIXuMzwEU...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
1‘Businesses Will Not Be Able to Hide’: Spy Sat...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
2RT @StevenDawsonSD: How #virtual assistants ar...{'neg': 0.0, 'neu': 0.833, 'pos': 0.167, 'comp...
3RT @mikecoulson48: @SwotTyler @johnmcdonnellMP...{'neg': 0.0, 'neu': 0.816, 'pos': 0.184, 'comp...
4RT @automeme: 4 Ways Artificial Intelligence C...{'neg': 0.0, 'neu': 0.7, 'pos': 0.3, 'compound...
5Chefs, truck drivers beware: AI is coming for ...{'neg': 0.0, 'neu': 0.847, 'pos': 0.153, 'comp...
6RT @StarCraft: This is it, ladies and gentleme...{'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp...
7RT @StarCraft: This is it, ladies and gentleme...{'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp...
8RT @NATS: In case you missed our announcement ...{'neg': 0.157, 'neu': 0.73, 'pos': 0.113, 'com...
9「NotePerformer」って,これかな.有料. | NotePerformer 3: ...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
10https://t.co/nFCC9dFEWS\\n\\n#AI #chabots #artif...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
11RT @uniglobalunion: In #Davos at the #WEF19, #...{'neg': 0.0, 'neu': 0.732, 'pos': 0.268, 'comp...
12RT @KoblerinPAK: Amazed to see that president ...{'neg': 0.0, 'neu': 0.74, 'pos': 0.26, 'compou...
13کیاخوبصورت کالم ہے\\n@ArifAlvi \\nصاحب آپ توچنگے...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
14RT @KoblerinPAK: Amazed to see that president ...{'neg': 0.0, 'neu': 0.74, 'pos': 0.26, 'compou...
15RT @KoblerinPAK: Amazed to see that president ...{'neg': 0.0, 'neu': 0.74, 'pos': 0.26, 'compou...
16#WatsonSupplyChain @IBMSupplyChain #retail at ...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
17‘Businesses Will Not Be Able to Hide’: Spy Sat...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
18RT @futurecitiescat: Our #URBAIN event has sta...{'neg': 0.0, 'neu': 0.834, 'pos': 0.166, 'comp...
19“High-altitude surveillance was once the domai...{'neg': 0.0, 'neu': 0.833, 'pos': 0.167, 'comp...
20RT @singularity_net: AI is the key topic at th...{'neg': 0.0, 'neu': 0.811, 'pos': 0.189, 'comp...
21RT @StarCraft: This is it, ladies and gentleme...{'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp...
22RT @BCG: What will be the effects of artificia...{'neg': 0.108, 'neu': 0.712, 'pos': 0.18, 'com...
23RT @_DeepQuest: The Inevitable Infant Rising &...{'neg': 0.141, 'neu': 0.726, 'pos': 0.132, 'co...
24RT @StarCraft: This is it, ladies and gentleme...{'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp...
25Invest in tech: artificial intelligence and ma...{'neg': 0.0, 'neu': 0.721, 'pos': 0.279, 'comp...
26RT @MiamiCableGuy: According to LinkedIn, thes...{'neg': 0.0, 'neu': 0.885, 'pos': 0.115, 'comp...
27\"‘Businesses Will Not Be Able to Hide’: Spy Sa...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
28RT @StarCraft: This is it, ladies and gentleme...{'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp...
29RT @_DeepQuest: https://t.co/1h8Q7zsHxF{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
.........
70How Artificial Intelligence is poised to boost...{'neg': 0.0, 'neu': 0.402, 'pos': 0.598, 'comp...
71RT @StarCraft: This is it, ladies and gentleme...{'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp...
72RT @jamesks: UoE machine learning society runn...{'neg': 0.0, 'neu': 0.837, 'pos': 0.163, 'comp...
73Using artificial intelligence for error correc...{'neg': 0.182, 'neu': 0.608, 'pos': 0.209, 'co...
74Artificial Intelligence Shows Potential for Tr...{'neg': 0.0, 'neu': 0.647, 'pos': 0.353, 'comp...
75RT @PostOpinions: \"What does an ethics-driven ...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
76RT @StarCraft: This is it, ladies and gentleme...{'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp...
77RT @davidbeem: \"From start to finish David Bee...{'neg': 0.134, 'neu': 0.866, 'pos': 0.0, 'comp...
78RT @OracleAnalytics: According to @techreviewA...{'neg': 0.0, 'neu': 0.88, 'pos': 0.12, 'compou...
79RT @StarCraft: This is it, ladies and gentleme...{'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp...
80‘Businesses Will Not Be Able to Hide’: Spy Sat...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
81It's going to take reliable, low-cost #energys...{'neg': 0.0, 'neu': 0.904, 'pos': 0.096, 'comp...
82RT @StarCraft: This is it, ladies and gentleme...{'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp...
83RT @philmcrae: Automation (robots, driverless ...{'neg': 0.0, 'neu': 0.853, 'pos': 0.147, 'comp...
84RT @bigdata: Using topological data analysis t...{'neg': 0.0, 'neu': 0.868, 'pos': 0.132, 'comp...
85Join IIEP, @IISTP_GW &amp; @SIIA for a discuss...{'neg': 0.0, 'neu': 0.762, 'pos': 0.238, 'comp...
86‘Businesses Will Not Be Able to Hide’: Spy Sat...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
87RT @StarCraft: This is it, ladies and gentleme...{'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp...
88RT @DavidJones_now: via @Newsweek The Aliens H...{'neg': 0.117, 'neu': 0.883, 'pos': 0.0, 'comp...
89RT @KoblerinPAK: دیکھ کر حیرانی ہوئی کہ صدر @A...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
90RT @StarCraft: This is it, ladies and gentleme...{'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp...
91RT @ThalesUK: What can the #transport industry...{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound...
92RT @StarCraft: This is it, ladies and gentleme...{'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp...
93Using artificial intelligence for error correc...{'neg': 0.182, 'neu': 0.608, 'pos': 0.209, 'co...
94Young people, less educated workers, men, and ...{'neg': 0.077, 'neu': 0.923, 'pos': 0.0, 'comp...
95RT @StarCraft: This is it, ladies and gentleme...{'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp...
96Understanding the Potential of Artificial Inte...{'neg': 0.0, 'neu': 0.659, 'pos': 0.341, 'comp...
97RT @data_nerd: Artificial Intelligence : Separ...{'neg': 0.0, 'neu': 0.744, 'pos': 0.256, 'comp...
98UoE machine learning society running a great s...{'neg': 0.0, 'neu': 0.823, 'pos': 0.177, 'comp...
99RT @program___news: Using artificial intellige...{'neg': 0.152, 'neu': 0.674, 'pos': 0.174, 'co...
\n", - "

100 rows × 2 columns

\n", - "
" - ], - "text/plain": [ - " Tweets \\\n", - "0 #Banking&Insurance https://t.co/JKIXuMzwEU... \n", - "1 ‘Businesses Will Not Be Able to Hide’: Spy Sat... \n", - "2 RT @StevenDawsonSD: How #virtual assistants ar... \n", - "3 RT @mikecoulson48: @SwotTyler @johnmcdonnellMP... \n", - "4 RT @automeme: 4 Ways Artificial Intelligence C... \n", - "5 Chefs, truck drivers beware: AI is coming for ... \n", - "6 RT @StarCraft: This is it, ladies and gentleme... \n", - "7 RT @StarCraft: This is it, ladies and gentleme... \n", - "8 RT @NATS: In case you missed our announcement ... \n", - "9 「NotePerformer」って,これかな.有料. | NotePerformer 3: ... \n", - "10 https://t.co/nFCC9dFEWS\\n\\n#AI #chabots #artif... \n", - "11 RT @uniglobalunion: In #Davos at the #WEF19, #... \n", - "12 RT @KoblerinPAK: Amazed to see that president ... \n", - "13 کیاخوبصورت کالم ہے\\n@ArifAlvi \\nصاحب آپ توچنگے... \n", - "14 RT @KoblerinPAK: Amazed to see that president ... \n", - "15 RT @KoblerinPAK: Amazed to see that president ... \n", - "16 #WatsonSupplyChain @IBMSupplyChain #retail at ... \n", - "17 ‘Businesses Will Not Be Able to Hide’: Spy Sat... \n", - "18 RT @futurecitiescat: Our #URBAIN event has sta... \n", - "19 “High-altitude surveillance was once the domai... \n", - "20 RT @singularity_net: AI is the key topic at th... \n", - "21 RT @StarCraft: This is it, ladies and gentleme... \n", - "22 RT @BCG: What will be the effects of artificia... \n", - "23 RT @_DeepQuest: The Inevitable Infant Rising &... \n", - "24 RT @StarCraft: This is it, ladies and gentleme... \n", - "25 Invest in tech: artificial intelligence and ma... \n", - "26 RT @MiamiCableGuy: According to LinkedIn, thes... \n", - "27 \"‘Businesses Will Not Be Able to Hide’: Spy Sa... \n", - "28 RT @StarCraft: This is it, ladies and gentleme... \n", - "29 RT @_DeepQuest: https://t.co/1h8Q7zsHxF \n", - ".. ... \n", - "70 How Artificial Intelligence is poised to boost... \n", - "71 RT @StarCraft: This is it, ladies and gentleme... \n", - "72 RT @jamesks: UoE machine learning society runn... \n", - "73 Using artificial intelligence for error correc... \n", - "74 Artificial Intelligence Shows Potential for Tr... \n", - "75 RT @PostOpinions: \"What does an ethics-driven ... \n", - "76 RT @StarCraft: This is it, ladies and gentleme... \n", - "77 RT @davidbeem: \"From start to finish David Bee... \n", - "78 RT @OracleAnalytics: According to @techreviewA... \n", - "79 RT @StarCraft: This is it, ladies and gentleme... \n", - "80 ‘Businesses Will Not Be Able to Hide’: Spy Sat... \n", - "81 It's going to take reliable, low-cost #energys... \n", - "82 RT @StarCraft: This is it, ladies and gentleme... \n", - "83 RT @philmcrae: Automation (robots, driverless ... \n", - "84 RT @bigdata: Using topological data analysis t... \n", - "85 Join IIEP, @IISTP_GW & @SIIA for a discuss... \n", - "86 ‘Businesses Will Not Be Able to Hide’: Spy Sat... \n", - "87 RT @StarCraft: This is it, ladies and gentleme... \n", - "88 RT @DavidJones_now: via @Newsweek The Aliens H... \n", - "89 RT @KoblerinPAK: دیکھ کر حیرانی ہوئی کہ صدر @A... \n", - "90 RT @StarCraft: This is it, ladies and gentleme... \n", - "91 RT @ThalesUK: What can the #transport industry... \n", - "92 RT @StarCraft: This is it, ladies and gentleme... \n", - "93 Using artificial intelligence for error correc... \n", - "94 Young people, less educated workers, men, and ... \n", - "95 RT @StarCraft: This is it, ladies and gentleme... \n", - "96 Understanding the Potential of Artificial Inte... \n", - "97 RT @data_nerd: Artificial Intelligence : Separ... \n", - "98 UoE machine learning society running a great s... \n", - "99 RT @program___news: Using artificial intellige... \n", - "\n", - " polarity \n", - "0 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", - "1 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", - "2 {'neg': 0.0, 'neu': 0.833, 'pos': 0.167, 'comp... \n", - "3 {'neg': 0.0, 'neu': 0.816, 'pos': 0.184, 'comp... \n", - "4 {'neg': 0.0, 'neu': 0.7, 'pos': 0.3, 'compound... \n", - "5 {'neg': 0.0, 'neu': 0.847, 'pos': 0.153, 'comp... \n", - "6 {'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp... \n", - "7 {'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp... \n", - "8 {'neg': 0.157, 'neu': 0.73, 'pos': 0.113, 'com... \n", - "9 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", - "10 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", - "11 {'neg': 0.0, 'neu': 0.732, 'pos': 0.268, 'comp... \n", - "12 {'neg': 0.0, 'neu': 0.74, 'pos': 0.26, 'compou... \n", - "13 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", - "14 {'neg': 0.0, 'neu': 0.74, 'pos': 0.26, 'compou... \n", - "15 {'neg': 0.0, 'neu': 0.74, 'pos': 0.26, 'compou... \n", - "16 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", - "17 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", - "18 {'neg': 0.0, 'neu': 0.834, 'pos': 0.166, 'comp... \n", - "19 {'neg': 0.0, 'neu': 0.833, 'pos': 0.167, 'comp... \n", - "20 {'neg': 0.0, 'neu': 0.811, 'pos': 0.189, 'comp... \n", - "21 {'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp... \n", - "22 {'neg': 0.108, 'neu': 0.712, 'pos': 0.18, 'com... \n", - "23 {'neg': 0.141, 'neu': 0.726, 'pos': 0.132, 'co... \n", - "24 {'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp... \n", - "25 {'neg': 0.0, 'neu': 0.721, 'pos': 0.279, 'comp... \n", - "26 {'neg': 0.0, 'neu': 0.885, 'pos': 0.115, 'comp... \n", - "27 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", - "28 {'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp... \n", - "29 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", - ".. ... \n", - "70 {'neg': 0.0, 'neu': 0.402, 'pos': 0.598, 'comp... \n", - "71 {'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp... \n", - "72 {'neg': 0.0, 'neu': 0.837, 'pos': 0.163, 'comp... \n", - "73 {'neg': 0.182, 'neu': 0.608, 'pos': 0.209, 'co... \n", - "74 {'neg': 0.0, 'neu': 0.647, 'pos': 0.353, 'comp... \n", - "75 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", - "76 {'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp... \n", - "77 {'neg': 0.134, 'neu': 0.866, 'pos': 0.0, 'comp... \n", - "78 {'neg': 0.0, 'neu': 0.88, 'pos': 0.12, 'compou... \n", - "79 {'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp... \n", - "80 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", - "81 {'neg': 0.0, 'neu': 0.904, 'pos': 0.096, 'comp... \n", - "82 {'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp... \n", - "83 {'neg': 0.0, 'neu': 0.853, 'pos': 0.147, 'comp... \n", - "84 {'neg': 0.0, 'neu': 0.868, 'pos': 0.132, 'comp... \n", - "85 {'neg': 0.0, 'neu': 0.762, 'pos': 0.238, 'comp... \n", - "86 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", - "87 {'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp... \n", - "88 {'neg': 0.117, 'neu': 0.883, 'pos': 0.0, 'comp... \n", - "89 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", - "90 {'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp... \n", - "91 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound... \n", - "92 {'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp... \n", - "93 {'neg': 0.182, 'neu': 0.608, 'pos': 0.209, 'co... \n", - "94 {'neg': 0.077, 'neu': 0.923, 'pos': 0.0, 'comp... \n", - "95 {'neg': 0.0, 'neu': 0.681, 'pos': 0.319, 'comp... \n", - "96 {'neg': 0.0, 'neu': 0.659, 'pos': 0.341, 'comp... \n", - "97 {'neg': 0.0, 'neu': 0.744, 'pos': 0.256, 'comp... \n", - "98 {'neg': 0.0, 'neu': 0.823, 'pos': 0.177, 'comp... \n", - "99 {'neg': 0.152, 'neu': 0.674, 'pos': 0.174, 'co... \n", - "\n", - "[100 rows x 2 columns]" - ] - }, - "metadata": { - "tags": [] - } - } + "data": {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jwd0m2Mro97gGoqtuGJ623M3oI/8VpDL0aDfeXc4E/yegvmT3JKK4XAUcAX2W0F/yeqvrP4QfsuO5ldKhmLfDLVfXkPPe1LwP/yuiwzZ2M93zVhcAVw7H7Ty1irhcEXykqaVVIchlwXVX99bRneaHykIskNeEeuiQ14R66JDVh0CWpCYMuSU0YdElqwqBLUhMGXZKa+F8iUNI4z2X0HgAAAABJRU5ErkJggg==\n", + "text/plain": [ + "
" ] + }, + "metadata": { + "needs_background": "light" + }, + "output_type": "display_data" } - ] + ], + "source": [ + "\n", + "plt.bar(height = [average_pos, average_neg, average_comp], x = [ \"Good\", \"Bad\", \"Compound\"])\n", + "plt.plot()\n" + ] + } + ], + "metadata": { + "colab": { + "name": "Untitled29.ipynb", + "provenance": [], + "version": "0.3.2" + }, + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.7.0" + } + }, + "nbformat": 4, + "nbformat_minor": 1 }