shawntz / eeb-c177-w20

lab section materials for eeb c177/c234 @ucla (winter 2020) 🐻
https://shawnschwartz.com/eeb-c177-w20/
Other
23 stars 1 forks source link

Lecture Homework #8: Question 2 #47

Closed dylanreadel closed 4 years ago

dylanreadel commented 4 years ago

I'm working through question 2a right now in lecture homework #8, but I can't think of any solutions to solve it. I assume I have to use a function to search each line of the Dalziel2016_data.csv file to find lines that match the year 1920, but I don't recall learning any. I have read about using regular expressions within Python in the textbook and online, but I can't find any help that I can understand and apply to this specific problem. Has anyone had any success with this problem? I can't move on to the rest of the homework because the problems are very similar to 2a (searching the file for key words).

shawntz commented 4 years ago

@dylanreadel were the contents of this question resolved after going through the code exercises in lecture last week? Let me know so that I can provide assistance (if still needed).