Going fast! #DataquestChallenge Premium Annual Offer:
500 get 50% & the next 1000 get 40% off.
GET OFFER CODE

Cleaning and Preparing Data in Python def statements

Screen Link:
https://app.dataquest.io/m/351/cleaning-and-preparing-data-in-python/8/parsing-numbers-from-complex-strings-part-two

My Code:

Replace this line with your code

What I expected to happen:

What actually happened:

Replace this line with the output/error

I understand the code but my question is if we just want to strip off unwanted characters and calculate the average age we can just write two definitions and use the def within the moma dataset looping and update the list. What is the reason for creating two new lists?

hi @maungkhantdelica

If you are still looking for this topic, can you please elaborate on your question? I can’t understand which two definitions and which two lists?