I have a plot-
When I am trying to do linear regression on it-
df=pd.read_csv('tau.csv')
xx= df['xx'].tolist()
yy=df['yy'].tolist()
from scipy.stats import linregress
#print(linregress(xx,yy))
slope, intercept, r_value, p_value, std_err=linregress(xx,yy)
print(slope)
plt.plot(xx,yy,'ro')
plt.xlabel('log(l)')
plt.ylabel('log(Rl)')
plt.title('Fractal dimension with '+str(slope))
plt.show()
I get the slope as nan.
my data-