T test between two numbers(0.85,0.18) getting p value as Nan
A t-test is for finding out whether two distributions are in fact coming from the same population. You cannot test for two single values. Hence, getting NaN is correct.
A distribution means, that you have a vector with values that you measured. To have a meaningful t-test, you should usually have at least 30 values.
t-test between two numbers (0.85,0.18) getting p-value as Nan along with the following error:

Getting this error also
_,p_value=stats.ttest_ind(a=Max,b=Max_1,equal_var=False)
C:\Users\NehaBhakat\Anaconda31\lib\site-packages\numpy\core\fromnumeric.py:3584: RuntimeWarning: Degrees of freedom <= 0 for slice
**kwargs)
C:\Users\NehaBhakat\Anaconda31\lib\site-packages\scipy\stats_distn_infrastructure.py:903: RuntimeWarning: invalid value encountered in greater
return (a < x) & (x < b)
C:\Users\NehaBhakat\Anaconda31\lib\site-packages\scipy\stats_distn_infrastructure.py:903: RuntimeWarning: invalid value encountered in less
return (a < x) & (x < b)
C:\Users\NehaBhakat\Anaconda31\lib\site-packages\scipy\stats_distn_infrastructure.py:1912: RuntimeWarning: invalid value encountered in less_equal
cond2 = cond0 & (x <= _a)