top of page
  • laronalipra

SPORECollectionv3102210834GOGtournamentcheats







SPORECollectionv3102210834GOGtournamentcheats I created a.dat file for every line of this file, and added it to the 'code' folder in TEMPLATE. I tried using import numpy as np but couldn't get it to work. I know that np.array works with each row as it's own array, but it appears to be just doing a row sum that I want to do on the columns? A: You can use np.loadtxt() to read in the data, which gives you an object with the columns as the.shape attribute, and the rows as the.shape attribute. You can then use numpy.reshape() to reshape the array. data = np.loadtxt("my_data.txt", skiprows=4, skip_header=1) data = np.reshape(data,(len(data),3)) print (data.shape) # (10,3) If your data is a text file, you can use the format: # instead of skip_header=1 skip_header=1, use skip_footer=1 # skip the first line, which is the header skip_header=4 I tested it, and it seems to work, here is an example file I created to test it: 10,3 10,3,0,1,0,0,0,1,0,0 10,3,0,1,0,0,0,1,0,0 10,3,0,1,0,0,0,1,0,0 10,3,0,1,0,0,0,1,0,0 10,3,0,1,0,0,0,1,0,0 10,3,0,1,0,0,0,1,0,0 10,3,0,1,0,0,0,1,0,0 10,3,0,1,0,0,0,1,0,0 10,3,0,1,0,0,0,1,0,0 10,3,0,1,0,0,0,1,0,0 10,3,0,1,0,0,0,1,0,0 10,3, d0c515b9f4


Related links:

6 views0 comments
bottom of page