Created
December 5, 2016 15:07
-
-
Save solebox/497814e84bf5be3788dec0e1780c2130 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/python | |
class Analyzer(object): | |
def __init__(self, filename): | |
self.parsed_file = [] | |
data = [] | |
with open(filename, "r") as csv_file: | |
data = csv_file.readlines() | |
data = [line.split(",") for line in data] | |
print(data[0]) | |
first = data[0][0:20] | |
second = data[0][20:40] | |
third = data[0][40:60] | |
print("first: {}\n second: {}\n third: {}".format(first,second,third)) | |
if __name__ == "__main__": | |
filename = "top3-4judit.xlsx - cloudB.csv" | |
analayzer = Analyzer(filename) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment