bitcoin_prediction icon indicating copy to clipboard operation
bitcoin_prediction copied to clipboard

merged data

Open stalkermustang opened this issue 8 years ago • 7 comments

Hi! Were i can find 'merged_data.csv' for ipynb usage (data = pd.read_csv("merged_data.csv"))?

stalkermustang avatar Feb 01 '18 20:02 stalkermustang

This is confusing for me two.

jdesrosiers01 avatar Feb 02 '18 20:02 jdesrosiers01

Same here

aymanapatel avatar Feb 03 '18 05:02 aymanapatel

I'm digging right there, until now it seems to be both files live_bitcion.csv & live_tweet.csv combined all together if @llSourcell can confirm that? guys remove twilio API if you don't need the SMS alert.

bitsnaps avatar Feb 03 '18 21:02 bitsnaps

combine sentiment6.txt and bitcoinprices.txt to merged_data.csv. Tried and sucessed.

tonywangcn avatar Feb 04 '18 05:02 tonywangcn

Hmm, i think we can merge live_bitcion.csv & live_tweet.csv by data(last) column and have 3 cols: price, sentiment, data.

stalkermustang avatar Feb 04 '18 08:02 stalkermustang

@tonywangcn, thanks, however looking at engine.py there are 3 columns : Price,Sentiment,Time datag = data[['Price','Sentiment']].groupby(data['Time']).mean() combining those 2 files we got 2 column starting from: 20171114,0.38021943904690936 20171113,0.38021943904690936 have you used pandas's join() or something like that ? comparing this fork to the original one, almost no difference!

bitsnaps avatar Feb 04 '18 11:02 bitsnaps

merge_data.csv can be generated by something like this:

import pandas as pd
btc = pd.read_csv('bitcoinprices.txt')
btc.columns = ["Time","Price"]
sent = pd.read_csv('sentiment6.txt')
sent.columns = ["Time","Sentiment"]
merged = sent.merge(btc, left_index=False, right_index=False, how="inner")
merged.to_csv('merged_data.csv')

bitsnaps avatar Feb 04 '18 15:02 bitsnaps