Screen Link: Learn data science with Python and R projects
Hello guys,I am stuck here and will need help to get going.
```for row in moma: date =  if date != "": date = int(date) row = date # Calculating Artist ages ages =  for row in moma: birth = row date = row if type(birth) == int: age = date - birth else: age = 0 ages.append(age) final_ages =  for age in ages: if age > 20: final_age = age else: final_age = "Unknown" final_ages.append(final_age)
What I expected to happen:
i expected the code to run and submit successfully
what exactly happened:
an error occurred
Replace this line with the output/error
<ipython-input-1-46df82ca44f7> in <module> 48 date =  49 if date != "": ---> 50 date = int(date) 51 row = date 52 TypeError: int() argument must be a string, a bytes-like object or a number, not 'list' Variables <!--Enter other details below: --> how does one solve this? Also, i manually typed the code on the scrip py page because the page did not reference code from Artworks_clean.csv file. for me to calculate the artist ages with/ Thanks for your time.