test_one[“predicted_price”] = model.predict(test_one[[“accommodates”]])
Screen Link:
My Code:
model.predict(test_one[“accommodates”])
Replace this line with your code
What I expected to happen:
What actually happened:
Replace this line with the output/error
<!--Enter other details below: -->
I can't make out why they used double brackets[[]] instead of single [].