363ff8e22a630c1d4fee21128117f7dfbe37ef67,pandas/core/apply.py,FrameApply,apply,#FrameApply#,248

Before Change


    def apply(self) -> FrameOrSeriesUnion:
         compute the results 
        // dispatch to agg
        if is_list_like(self.f) or is_dict_like(self.f):
            // pandas\core\apply.py:144: error: "aggregate" of "DataFrame" gets
            // multiple values for keyword argument "axis"
            return self.obj.aggregate(  // type: ignore[misc]
                self.f, axis=self.axis, *self.args, **self.kwds
            )

        // all empty
        if len(self.columns) == 0 and len(self.index) == 0:
            return self.apply_empty_result()

        // string dispatch

After Change


    def apply(self) -> FrameOrSeriesUnion:
         compute the results 
        // dispatch to agg
        result = self.maybe_apply_multiple()
        if result is not None:
            return result

        // all empty
        if len(self.columns) == 0 and len(self.index) == 0:
            return self.apply_empty_result()

        // string dispatch
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pandas-dev/pandas
Commit Name: 363ff8e22a630c1d4fee21128117f7dfbe37ef67
Time: 2021-01-14
Author: 45562402+rhshadrach@users.noreply.github.com
File Name: pandas/core/apply.py
Class Name: FrameApply
Method Name: apply


Project Name: pandas-dev/pandas
Commit Name: 363ff8e22a630c1d4fee21128117f7dfbe37ef67
Time: 2021-01-14
Author: 45562402+rhshadrach@users.noreply.github.com
File Name: pandas/core/apply.py
Class Name: SeriesApply
Method Name: apply


Project Name: pandas-dev/pandas
Commit Name: 3d281cf1a37f9b982df130c2ce9706cfc66a88aa
Time: 2021-02-17
Author: rhshadrach@gmail.com
File Name: pandas/core/apply.py
Class Name: Apply
Method Name: agg_list_like