3c4c60ef5dce4695ebe29f2680058310daef77b9,ggplot/layer.py,layer,compute_aesthetics,#layer#Any#Any#,67

Before Change


                raise GgplotError(msg.format(ae))

        evaled = data.loc[:, list(renames.keys())]
        evaled.rename(columns=renames, inplace=True)
        evaled.update(settings)

        if len(data) == 0 and settings:
            // No data, and vectors suppled to aesthetics

After Change


        scales_add_defaults(plot.scales, data, aesthetics)

        colnames = []  // columns to rename with aesthetics names
        aenames = []   // aesthetics names to use
        settings = {}  // for manual settings withing aesthetics
        for ae, col in aesthetics.items():
            if isinstance(col, six.string_types):
                colnames.append(col)
                aenames.append(ae)
            elif com.is_list_like(col):
                n = len(col)
                if n != len(data) or n != 1:
                    raise GgplotError(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: has2k1/plotnine
Commit Name: 3c4c60ef5dce4695ebe29f2680058310daef77b9
Time: 2015-04-20
Author: has2k1@gmail.com
File Name: ggplot/layer.py
Class Name: layer
Method Name: compute_aesthetics


Project Name: kwgoodman/numerox
Commit Name: a71ef6c89f725c7052d993f387329e052792160d
Time: 2018-09-04
Author: kwgoodman@gmail.com
File Name: numerox/prediction.py
Class Name: Prediction
Method Name: rename


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: c91ee1c0b3dbeeab4b09a691d3441a7e72a136ff
Time: 2017-08-25
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATdx.py
Class Name:
Method Name: QA_fetch_get_stock_realtime