Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
def csv_list_maker(data_file, delimiter=',') -> list:
Turn data in csv form into list form
:param data_file: file containing the data
:param delimiter: character delimiting the data
:return: data_list: data in list form
data_reader = csv.reader(data_file, delimiter=delimiter)
data_list = list(data_reader)
return data_list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment