af44192d3ae919e4cfadd6acfcdd3a1a16b4b5a9,plotnine/stats/stat_qq.py,stat_qq,compute_group,#Any#Any#Any#,52

Before Change



    @classmethod
    def compute_group(cls, data, scales, **params):
        theoretical, sample = probplot(data["sample"],
                                       dist=params["distribution"],
                                       sparams=params["dparams"],
                                       fit=False)

After Change



    @classmethod
    def compute_group(cls, data, scales, **params):
        sample = data["sample"].sort_values()
        alpha, beta = params["alpha_beta"]
        quantiles = params["quantiles"]

        if quantiles is None:
            quantiles = plotting_positions(sample, alpha, beta)
        elif len(quantiles) != len(sample):
            raise PlotnineError(
                "The number of quantile values is not the same as "
                "the number of sample values.")

        quantiles = np.asarray(quantiles)
        cdist = get_continuous_distribution(params["distribution"])
        theoretical = cdist.ppf(quantiles, *params["dparams"])
        return pd.DataFrame({"sample": sample,
                             "theoretical": theoretical})
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: has2k1/plotnine
Commit Name: af44192d3ae919e4cfadd6acfcdd3a1a16b4b5a9
Time: 2017-11-22
Author: has2k1@gmail.com
File Name: plotnine/stats/stat_qq.py
Class Name: stat_qq
Method Name: compute_group


Project Name: merenlab/anvio
Commit Name: 72aaa2594de9efa8d86af449ac332f332e398e9e
Time: 2019-10-31
Author: kiefl.evan@gmail.com
File Name: anvio/drivers/fastani.py
Class Name: ManyToMany
Method Name: fill_missing_data


Project Name: havakv/pycox
Commit Name: f3bcd24c5856e10bf41c437aec7f6610cc50bbab
Time: 2019-02-19
Author: haavard.kvamme@gmail..com
File Name: pycox/models/cox_cc.py
Class Name: CoxTime
Method Name: compute_baseline_hazards


Project Name: scikit-learn/scikit-learn
Commit Name: 9d677b56f4244eb08f1c7e2061a1e86fd0aee748
Time: 2020-05-16
Author: olivier.grisel@gmail.com
File Name: examples/compose/plot_column_transformer_mixed_types.py
Class Name:
Method Name: