I have a simple problem that I'm finding problematic and I need some help with it. I want to convert two lists into data points.
example: Data: A = [1,2,3,4,5] B = [6,7,8,9,10]
Wanted output: C = [[1,6], [2,7], [3,8], [4,9], [5,10]]
It's like a bijective function in mathematics, but I have no idea how to implement it in code. It doesn't have to be lists. Vectors, Matrices, Arrays. Really anything will do. I have thousands of observations and I want a quick way to group them in the above fashion so I can analyze them. Right now, I'm doing a bunch of workarounds by exporting it from different software. I've tried using For loops and even indexing, but I just can't seem to get it right. New to writing code! Please help!
P.S. I'm using Python.