8 questions. Covers Data cleaning lab.
Questions 1 to 5 of 8
Use the arrows to put the steps in order.
TreeBuilder
<p>Free <strong>20</strong></p>
python MISSING_WORDS = {"", "n/a", "-", "null"} def clean_text(value): if value.lower() in MISSING_WORDS: return "" return value
python import xml.etree.ElementTree as ET root = ET.fromstring(text) # text holds library.xml from the lesson years = sum(b.findtext('year') for b in root) print(years)
python import csv with open('messy.csv', encoding='cp1252', newline='') as f: row = next(csv.DictReader(f)) print(row['Signup'])
3 question(s) left on this page.