if i have a nested list as a matrix, how to transpose it? am looking for solution in python or golang. please be specific and simple, tell me which building function or lib+function to use. All i want is a one time simple transpose. thanks.
Conversation
Notices
-
∑ Xah Lee 李杀 (xahlee@mstdn.io)'s status on Sunday, 18-Aug-2019 16:29:08 UTC ∑ Xah Lee 李杀
-
∑ Xah Lee 李杀 (xahlee@mstdn.io)'s status on Sunday, 18-Aug-2019 16:32:57 UTC ∑ Xah Lee 李杀
-
∑ Xah Lee 李杀 (xahlee@mstdn.io)'s status on Sunday, 18-Aug-2019 16:35:48 UTC ∑ Xah Lee 李杀
actually ruby javascript emacs lisp php are all fine. i just need to do 1 time transpose on a table, using lang i already have installed. this is not for programing. it's just text manipulation of a table for a blog post. simple solution i can do quickly is the key. 😀
-
∑ Xah Lee 李杀 (xahlee@mstdn.io)'s status on Sunday, 18-Aug-2019 16:41:17 UTC ∑ Xah Lee 李杀
@Arwalk i have a text like this
1 2 3
a b ci want
1 a
2 b
3 ci can convert them to list in python etc then do transpose then remove the brackets.
-
∑ Xah Lee 李杀 (xahlee@mstdn.io)'s status on Sunday, 18-Aug-2019 16:47:11 UTC ∑ Xah Lee 李杀
@Arwalk thanks!
-