stack a array into another array

Discussion in 'Python' started by jliu66, Oct 21, 2007.

  1. jliu66

    jliu66

    Joined:
    Oct 19, 2007
    Messages:
    3
    Hi,

    I am newie to python.

    How I combine 2 multi-dimension array into one by column?
    here is an exmaple:

    a = 1 2 3
    2 3 4
    3 4 5

    b = 4 5 6
    6 7 8
    8 9 1

    the combined array should be
    c = 1 2 3 4 5 6
    2 3 4 6 7 8
    3 4 5 8 9 1

    So essentially, stack all 3 columns of b into the end of a. c is 3 by 6 array.
    How can i do that in python? Thanks in advance.
     
    jliu66, Oct 21, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Surinder Singh
    Replies:
    1
    Views:
    1,226
    Richard Bos
    Dec 20, 2007
  2. Casey Hawthorne
    Replies:
    3
    Views:
    1,115
    Flash Gordon
    Nov 1, 2009
  3. Debajit Adhikary
    Replies:
    36
    Views:
    2,348
    Andre Kaufmann
    Feb 10, 2011
  4. Sam Roberts
    Replies:
    1
    Views:
    231
    Yukihiro Matsumoto
    Feb 11, 2005
  5. Kenneth McDonald

    Why stack overflow with such a small stack?

    Kenneth McDonald, Aug 30, 2007, in forum: Ruby
    Replies:
    7
    Views:
    274
    Kenneth McDonald
    Sep 1, 2007
Loading...

Share This Page