Skip to content

Instantly share code, notes, and snippets.

@cgoliver cgoliver/
Created Nov 27, 2017

What would you like to do?
from mycsv import *
if __name__ == "__main__":
#creating parser object
#these are default values anyway
#passing them explicitly just to show funcionatity
parser = MyCSV(delimiter=",", header=True)
#parsing test file
data = parser.parse("test.csv")
print(f"Columns: {data.columns}")
print(f"Attributes: {data.__dict__}")
#get gpa column
print(f"GPA column: {data.gpa}")
for row in data.iterrows():
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.