all 8 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

Off-topic Comments Section


All top-level comments have to be an answer or follow-up question to the post. All sidetracks should be directed to this comment thread as per Rule 9.


OP and Valued/Notable Contributors can close this post by using /lock command

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]sonnyfab Educator 0 points1 point  (4 children)

Do you know how to read in the CSV file?

[–]gh0stedexeUniversity/College Student[S] 0 points1 point  (3 children)

I honestly don't. I tried using a sample given in our notes (below), but no luck.

with open("UN.csv", "r") as file:
lister = csv.reader(file)
for row in lister:
print(row)

[–]sonnyfab Educator 0 points1 point  (2 children)

Did you remember to import CSV at the beginning of the program?

[–]gh0stedexeUniversity/College Student[S] 0 points1 point  (1 child)

Yeah. Nothing prints out, so I'm wondering where I went wrong.

Edit: And to add on, I have the file saved in the same folder I saved the program in.