Skip to content

Instantly share code, notes, and snippets.

@solebox
Created December 5, 2016 15:07
Show Gist options
  • Save solebox/497814e84bf5be3788dec0e1780c2130 to your computer and use it in GitHub Desktop.
Save solebox/497814e84bf5be3788dec0e1780c2130 to your computer and use it in GitHub Desktop.
#!/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