Unverified Commit da18b235 authored by ishres19's avatar ishres19 Committed by GitHub
Browse files

Delete senior_capstone_sentiment_analysis directory

parent d7dce3f4
created_at,mean
12/1/20,-0.002490867
12/2/20,0.044003754
12/3/20,0.029418767
12/4/20,0.023101016
12/5/20,-0.015740505
12/6/20,0.014540903
12/7/20,0.057900052
12/8/20,0.050564421
12/9/20,0.01617925
12/10/20,-0.003985575
12/11/20,-0.01146929
12/12/20,0.030615307
12/13/20,0.018486965
12/14/20,0.021632867
12/15/20,0.033903785
12/16/20,0.01057292
12/17/20,0.018071444
12/18/20,0.013159706
12/19/20,-0.02730085
12/20/20,-0.033428737
12/21/20,0.004276556
12/22/20,0.041420262
12/23/20,0.065166503
12/24/20,0.04915323
12/25/20,0.078506569
12/26/20,-0.031582707
12/27/20,-0.020897034
12/28/20,0.037410141
12/29/20,-0.001039831
12/30/20,-0.009501175
12/31/20,0.041942893
\ No newline at end of file
created_at,mean
2020-12-01,-0.0024908667830133777
2020-12-02,0.044003753846153786
2020-12-03,0.029418767351471403
2020-12-04,0.023101015531660638
2020-12-05,-0.015740504731861144
2020-12-06,0.014540903307888048
2020-12-07,0.05790005170630794
2020-12-08,0.050564421052631564
2020-12-09,0.016179250263991574
2020-12-10,-0.0039855747126436815
2020-12-11,-0.011469290399522953
2020-12-12,0.03061530748663103
2020-12-13,0.0184869652406417
2020-12-14,0.021632866707242834
2020-12-15,0.033903785310734486
2020-12-16,0.010572920156337234
2020-12-17,0.018071443569553806
2020-12-18,0.01315970556161397
2020-12-19,-0.02730084985835699
2020-12-20,-0.03342873696407883
2020-12-21,0.004276555793991403
2020-12-22,0.041420261780104696
2020-12-23,0.06516650326797369
2020-12-24,0.04915322981366453
2020-12-25,0.07850656871218649
2020-12-26,-0.0315827067669174
2020-12-27,-0.020897034482758634
2020-12-28,0.037410140500916345
2020-12-29,-0.0010398314606741641
2020-12-30,-0.009501174743024919
2020-12-31,0.041942893272635014
import json
import pandas as pd
# from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
# from textblob import TextBlob
# file_content = open('2020-12-randomlychosen.jsonl', "r")
def convert_json_to_dataframe(filename, year_month):
df = pd.read_json(filename, lines = True)
df = df[df['lang'].str.contains('en|uk', regex=True)]
df = df[['created_at','id','full_text','geo','coordinates','place', 'lang', 'retweeted_status']]
df.to_csv('monthly_tweets_dataframe/'+year_month+'.csv', index=False)
convert_json_to_dataframe('/eccs/home/ishres19/COVID-19-TweetIDs/2020-2021/2020-11-randomlychosen.jsonl', '2020_11')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment