Python Forum
Transposing a Matrix WITHOUT numpy
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Transposing a Matrix WITHOUT numpy
#6
It's a built-in function, just like list, int, range, and input.

You could write a set of loops to do what I described: get a list of the first item in each list, a list of the second item in each list, a list of the third item in each list, and so on. But you would have to loop through the indexes of the list and the sub-lists, which wouldn't be very Pythonic.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: Transposing a Matrix WITHOUT numpy - by ichabod801 - Mar-02-2019, 10:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Check if two matrix are equal and of not add the matrix to the list quest 3 834 Jul-10-2023, 02:41 AM
Last Post: deanhystad
  Transposing a dataframe without creating NaN values doug2019 2 991 Mar-18-2023, 03:14 PM
Last Post: jefsummers
  Numpy error while filling up matrix with Characters august 4 1,865 Apr-13-2022, 10:28 PM
Last Post: august
  Create a 2-channel numpy file from two cvs file containing a 9x9 matrix silvialecc 1 1,646 Oct-26-2021, 07:59 AM
Last Post: Gribouillis
  How to multiply a matrix with herself, until the zero matrix results peanutbutterandjelly 3 3,379 May-03-2021, 06:30 AM
Last Post: Gribouillis
  NumPy Matrix help ntailor97 1 1,831 Apr-08-2021, 03:23 AM
Last Post: ntailor97
  Matrix Operations Without Numpy or Incorporating Python into Webpage ebryski 1 2,928 Nov-26-2020, 12:50 PM
Last Post: jefsummers
  Transposing Table salihozturk 3 2,552 Mar-03-2019, 06:55 PM
Last Post: salihozturk
  Transposing in Excel and converting to txt muhsin 2 2,872 Dec-10-2017, 06:06 PM
Last Post: muhsin
  matrix from matrix python numpy array shei7141 1 3,713 Jan-16-2017, 06:10 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020