Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は次の2つの配列を持っています:
k=arange(1,100) m=arange(1,100)
次に、それらを2列99行の配列に追加または結合する方法は?
vstack、hstackそしてtransposeこのようなことのためのあなたの友達です。
vstack
hstack
transpose
>>> vstack([k,m]).transpose() array([[ 1, 1], [ 2, 2], [ 3, 3], ... [98, 98], [99, 99]])