Python Forum
How to remove apostrophes in a matrix
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to remove apostrophes in a matrix
#2
Your matrix variable only stores the last row of your csv file... and I think is not what you want.
matrix = [row for row in puzzle]
Will read all the rows in a list (so matrix is a list of lists)
Reply


Messages In This Thread
How to remove apostrophes in a matrix - by sylas - May-06-2018, 12:56 PM
RE: How to remove apostrophes in a matrix - by killerrex - May-06-2018, 01:12 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 1,951 Jul-10-2023, 02:41 AM
Last Post: deanhystad
  How to multiply a matrix with herself, until the zero matrix results peanutbutterandjelly 3 4,720 May-03-2021, 06:30 AM
Last Post: Gribouillis
  Remove isolated vertices from dictionary and adjacency matrix Weird 1 2,574 Jan-18-2020, 04:33 PM
Last Post: Weird
  remove apostrophes in list sparkz_alot 5 12,473 Jul-21-2017, 09:21 PM
Last Post: sparkz_alot
  Is it possible to avoid apostrophes ? sylas 5 5,026 Jul-19-2017, 11:51 AM
Last Post: Larz60+
  matrix from matrix python numpy array shei7141 1 4,503 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