def empty_cell(dataset, index):
for row in dataset:
empty = row[index]
if not empty:
empty = "Not Applicable"
row[index] = empty
Hi everyone, I have tried to convert the lesson from cleaning and preparing data in python. String capitalisation. into a standalone function with the code above. When I run the function in the guided project it produces a syntax error. Would appreciate any guidance on this issue. Thanks!
You’re going to need to share a lot more context around this. What are the mission and screen numbers?
What is the full code you’re using? Also, please share your notebook.