Answer same as solution but won't run

Screen Link: https://app.dataquest.io/m/239/processing-and-transforming-features/4/transforming-improper-numerical-features

I ran the solution for step 4:
train['years_until_remod'] = train['Year_Remod/Add'] - train['Year Built'] and it didn’t run, but when I pasted the solution, it ran. No difference in spacing.

Hello @feedmyboxtoday,

The error is here:

The column name is 'Year Remod/Add' so it should be train['Year Remod/Add'] NOT train['Year_Remod/Add']

1 Like

Ah, thanks. Yes, the underscore was wrong.