Consider:
House_prices = [10050, 42300, 50206, 105000, 22350]
Num_rooms = [4, 5, 6, 10, 12, 2]**
This is the code that I have tried:
x = df.House_prices
y = df.Num_rooms
plt.scatter(x,y)
plt.show()
I want to plot both House_prices
and Num_rooms
into a scatter plot.
But I got the error:
'list' object has no attribute 'House_prices'