Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

so i have a code that contains the date a tweet is published, the tweet itself,

ID: 3905427 • Letter: S

Question

so i have a code that contains the date a tweet is published, the tweet itself, and the sentiment value(as in if it is positive or negative). What I need to do is a plot that shows the correlation between the date and the sentiment of the tweet.

292 BR 123 2009-0831 3RTMIchoobaby T g net a Asgressive persont nztysh ke Lesssnot.teve Hartinn'. "pos'1 Terrantbooks: justanggie aka rbit adalah Stilla Ari 2009-08-31 23:58:06 ', '2000 iler. dna harta & tahtagw. nailsr. kl. In' :Jane Carter Solution: Make your own coc nr:72 Y.. nt?nd -, a sn: n 1 ti i

Explanation / Answer

with open(' newdata.txt ') as f:
for line in f:
tweet = re.sub(r ' T ', " ", line)
t = re.sub(r ' W ' , " // ", tweet)
data = t.split("//")
sentiment_value = s.sentiment(data[1])
data.append(' Sentiment :: ' +sentiment_value)
del data[1]
print (data)
with open(' out.txt ', 'a') as filehandle :
filehandle.write(' %s ' % data)

For your, correlation, I edit code at BOLD style which i mentiened