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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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

Post by answerhappygod »

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:
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply