3408a61ff940900ed1aa5fb89ee92635938d2e94,pandas/core/reshape/pivot.py,,__internal_pivot_table,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,114

Before Change


        and not table.empty
        and (table.columns.nlevels > 1)
    ):
        table = table[values[0]]

    if len(index) == 0 and len(columns) > 0:
        table = table.T

After Change



    // discard the top level
    if values_passed and not values_multi and table.columns.nlevels > 1:
        table = table.droplevel(0, axis=1)
    if len(index) == 0 and len(columns) > 0:
        table = table.T

    // GH 15193 Make sure empty columns are removed if dropna=True
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pandas-dev/pandas
Commit Name: 3408a61ff940900ed1aa5fb89ee92635938d2e94
Time: 2021-02-24
Author: 45562402+rhshadrach@users.noreply.github.com
File Name: pandas/core/reshape/pivot.py
Class Name:
Method Name: __internal_pivot_table


Project Name: bokeh/bokeh
Commit Name: 061d916ba77932d50e41c83f476d8c0d55674856
Time: 2018-10-13
Author: xavart2011@gmail.com
File Name: examples/app/gapminder/main.py
Class Name:
Method Name:


Project Name: aertslab/pySCENIC
Commit Name: a97096995c6a24834b80552a35851bec4360383d
Time: 2018-03-12
Author: vandesande.bram@gmail.com
File Name: src/pyscenic/transform.py
Class Name:
Method Name: df2regulomes