plotting line and scatter plot in python
I suspect the issue here is that the Pandas OLS model can't understand GraphLab's SArray. Try converting the SFrames train_data
and test_data
into a Pandas Dataframe first - the following works for me:
df_train = train_data.to_dataframe()model = old(y=df_train['price'], x=df_train['sqft_living'])