What Arguments to use while doing a KS test in python with student's t distribution?
The args argument must be a tuple but it can be a single variable. You can do your test using ks_statistic, pvalue = scipy.stats.kstest(x, 't', (10,)) if 10 is the degrees of freedom.
I have data regarding metallicity in stars, I want to compare it with a student's t distribution. To do this I am running a Kolmogorov-Smirnov test using scipy.stats.kstest on python
    KSstudentst = scipy.stats.kstest(data,"t",args=(a,b))
But I am unable to find what the arguments are supposed to be. I know the student's t requires a degree of freedom (df) parameter but what is the other parameter. Also which one of the two is the df parameter.
In the documentation for scipy.stats.t.cdf the inputs are the position at which value is to be calculated and df, but in the KS test there is no sense in providing the position.