Skip to content

hstacking GroupBy MultiSet Objects #323

Answered by HYPERTONE
HYPERTONE asked this question in Q&A
Discussion options

You must be logged in to vote

An easy work around may be to slice the GroupBy object as they are FastArray objects.

We can obtain the 'day' columns via:

section1[0][1]
section2[0][1]

And the 'someLatency' columns via:

section1[0][0]
section2[0][0]

We can stack both via:
rt.rt_hstack.stack_rows([section1[0][1], section2[0][1]])

Or simply just create a new Dataset using:

my_ted_talk = rt.Dataset({'Day' : rt.rt_hstack.stack_rows([section1[0][1], section2[0][1]]), 'Latency' : rt.rt_hstack.stack_rows([section1[0][0], section2[0][0]])})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by HYPERTONE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant