statsmodels.stats.weightstats.CompareMeans.from_data¶
- 
classmethod 
CompareMeans.from_data(data1, data2, weights1=None, weights2=None, ddof1=0, ddof2=0)[source]¶ construct a CompareMeans object from data
Parameters: - data2 (data1,) – compared datasets
 - weights2 (weights1,) – weights for each observation of data1 and data2 respectively, with same length as zero axis of corresponding dataset.
 - ddof2 (ddof1,) – default ddof1=0, ddof2=0, degrees of freedom for data1, data2 respectively.
 
Returns: Return type: A CompareMeans instance.
