CSV Ingesting

def Ingest_All_CSV(filename): # Returns dict where 'AllData' is list of dicts and # 'Publishers' is list data = [] with open(filename,'U') as csvfile: reader = csv.DictReader(csvfile) for row in reader: data.append(row) return data
Ben and his magic

1 Response

vut eez dees? zum kend of rozbot lengwej?!?! Borgdan not truszt eet!

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.