Crypto_Trader
Crypto_Trader copied to clipboard
We need to specify date format for arrow.get()
https://github.com/bshaw19/Crypto_Trader/blob/2f0f416c78b917d00f99b7c2ec0babcfbf33bc7e/Variable_Functions/Twitter_Sentiment.py#L16
@bshaw19 I'm not sure what date format you intend to use here. When I wrote this code for the LSTM stock model the input date worked without specifying a formatting argument to the arrow.get() function.
I was running this today and ran into problems with the "YYYY-MM-DD" format as without a formatting argument, it assumes another format and thus returns tweets for the wrong dates. When we know our date format we can add the argument to avoid this problem.
Arrow documentation: http://arrow.readthedocs.io/en/latest/
We can specify it to match up with the Data_Grabber.py database date format for now. Trying to build "Inputs_Table_Builder.py" so that it automatically backfills based on the timestamps in the database.