Cleaning Data Using Python
Example:
test_1= [1, 2, 3, None, 0, 4]
print(test_1)
# [1, 2, 3,4]
Hint: To loop a dictionary, you will needto use the. keys() method.
Example:
Hint: You may need to strip eachname and value.
Hint: You can usethe isdigit() method of a Python string to check if aspecific value contains only numbers.
Hint: To test your function, you'll needto download and import the order.csv file. (Downloaded,here it is:)
Name Age Order
Alex 23 Pizza
Zach 32 Burger
Jenn 41 Salad
Armando 26 Pasta
Samantha 50 Soup
Tiffany 22 Burger
Brian 38 BBQ
Abdul 64 Sushi
Example:
Cleaning Data Using Python Example: test_1 = [1, 2, 3, None, 0, 4] print(test_1) # [1, 2, 3, 4] Hint: To loop a dictiona
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Cleaning Data Using Python Example: test_1 = [1, 2, 3, None, 0, 4] print(test_1) # [1, 2, 3, 4] Hint: To loop a dictiona
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!