Different outputs each time from sns.regplot(d.sample(1000).x, d.sample(1000).price, order=2)

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.

1 Like

Sampling is a random process. it will result in different 1000 samples every time. It might be the result for different output.

1 Like