There's a typo in the instructions I think

There’s a typo, I believe, in the code contained in the instructions:

print(loans.pub_rec_bankruptcies.value_counts(normalize=True, dropna=False))

This code is only in the instructions and never used in the answer, but it should be




Hi @mikefellner98,

No, it’s not a typo, this syntax is also used. However, to use it, the column name cannot contain whitespaces (like pub rec bankruptcies), while the presence of underscores is acceptable.

1 Like