Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Merge 3 toke data in one data frame

    Python SDK
    0
    2
    3
    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.
    • S
      subh last edited by

      I got output like below when I subscribe but how can we take this all 3 token output to single data frame. Currently it creates 3 data frame ,

      [I 240315 16:13:48 <string>:142] on open
         token  last_traded_price  ... open_interest  volume_trade_for_the_day0  45744              188.0  ...        421650                    517050
      [1 rows x 5 columns]
         token  last_traded_price  ... open_interest  volume_trade_for_the_day0  45744              188.0  ...        421650                    5170501  45642               29.3  ...             0                         0
      [2 rows x 5 columns]
         token  last_traded_price  ... open_interest  volume_trade_for_the_day0  45744              188.0  ...        421650                    5170501  45642               29.3  ...             0                         02  45025                9.8  ...             0                         0
      [3 rows x 5 columns]

      H 1 Reply Last reply Reply Quote 0
      • H
        hellboy_147 @subh last edited by

        @subh You can simply do pd.concat([df_1,df_2,df_3],axis=0). This would merge your 3 dataframe in one.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post