For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Custom Pandas Error
-
Hello, I got errors like
How to solve this problem?
-
@wnwkr13 First few notes:
- Please do not post a code as image. Take a look at the very top of the page for the instructions on how to post code in the text format - this way one can copy/paste and try to repro the problem.
- It would be great if you could include your data (.csv) file sample - just to get the idea what format is used
- Please include the full backtrace of the error you've got - things will be much clearer this way.
As for the problem, my wild guess is that pandas
read_csv
method wasn't able to deduce/parse the datetime column from the .csv file ( it could be in unknown format, unsupported resolution - in case of timestamps used - or missing).A similar problem was discussed few times here in the forum:
https://community.backtrader.com/topic/3411/data-feed-format/6
https://community.backtrader.com/topic/3384/attributeerror-int-object-has-no-attribute-to_pydatetime/18 -
@vladisld Thank you for your reply