code1- sns.regplot(d.sample(1000).x ,d.sample(1000).price ,order=2);
code2- sns.regplot(‘x’ , ‘price’ , data=d.sample(1000) , order=2);
i think both of them should give me same output,but they aren’t.
code1- sns.regplot(d.sample(1000).x ,d.sample(1000).price ,order=2);
code2- sns.regplot(‘x’ , ‘price’ , data=d.sample(1000) , order=2);
i think both of them should give me same output,but they aren’t.
Sampling is a random process. it will result in different 1000 samples every time. It might be the result for different output.