Backtrader Community

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

    How to convert GenericCSVData to pandas dataframe

    General Code/Help
    2
    2
    876
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      Yelloww last edited by

      Hi,

      How to print values in a GenericCSVData object as if it is a time series of OHLCVOI columes? and how to convert a GenericCSVData object to pandas dataframe?
      Thank you.

      1 Reply Last reply Reply Quote 0
      • P
        Paska Houso last edited by

        @Yelloww said in How to convert GenericCSVData to pandas dataframe:

        How to print values in a GenericCSVData object as if it is a time series of OHLCVOI columes?

        Look at this post: https://community.backtrader.com/topic/270/how-do-i-access-past-raw-data-in-strategy/

        Accessing each line of the GenericCSVData and then the mentioned array attribute, should allow you to do it.

        and how to convert a GenericCSVData object to pandas dataframe?

        Use array attribute again and use as the seed for the Dataframe columns.

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post
        Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors