For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Cannot import own csv file
-
I am having trouble importing my own CSV file. This is the code I use:
data = bt.feeds.GenericCSVData( dataname='df.csv', fromdate=datetime(2018, 2, 2), todate=datetime(2021, 1, 1), dtformat=('%Y-%m-%d %H:%M:%S'), datetime=0, open=1, close=2, high=3, low=4, volume=5, openinterest=-1)
And this is the df.csv file I use:
I get the following error:
ValueError: time data '' does not match format '%Y-%m-%d %H:%M:%S'
But I do not understand why I get this error, since the format is correct? Hopefully someone sees what I am doing wrong here (:
-
@lucpc Seems like there are NA values in the Date column, I'm fixing that now