Change string type blank cells to 0 using str.replace
In lesson 3.2, the following codes does not work. Any ideas?
loan_data['emp_length_int'] = loan_data['emp_length_int'].str.replace("N/A",str(0))
thanks for reaching out! Would you be able to provide a screenshot of your code along with the error message you're receiving? It might help narrow the problem down.
Thanks in advance!