Hacker News new | past | comments | ask | show | jobs | submit login

I think what you want is a combination of swapaxes and flip (reshape does not turn rows into columns, it turns m input rows into n output rows), but yeah.

Actually let me include a little figure

  original  reshape  swapaxes

  abc       ab       ad
  def       cd       be
            ef       cf



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: