This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
#### Read in the data from u1.base and format it appropriately. | |
FILE_NAME = 'u1.base' | |
def get_data(file_name): | |
data = open(file_name,'r').readlines() | |
return data | |
def Transpose(matrix): | |
nrows = len(matrix) |