Merging a 10x10 data table into a 1x100 #3203
Answered
by
oleksiyskononenko
SMOK1N-ACES
asked this question in
Q&A
-
This seems like a pretty straight forward problem but the solution is escaping me... I am trying to take a data table of 10 rows and 10 columns and merge it into a 1 column with all of the 100 values... can someone post some starter code to do this? Big Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
oleksiyskononenko
Nov 15, 2021
Replies: 2 comments 8 replies
-
Just use dt.rbind(): from datatable import dt
DT_10x10 = dt.Frame([range(10)]*10)
DT_100x1 = dt.rbind(*DT_10x10, bynames=False) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SMOK1N-ACES
-
Thanks for the easy fix. I was struggling to implement rbind correctly. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just use dt.rbind():