Created
August 10, 2021 03:22
-
-
Save LauraLangdon/2ac2d336e7257fd860a794bcd705269b to your computer and use it in GitHub Desktop.
This file contains 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
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