9b2a4acfe78fa4be5325cfdedc146d606537d1e9,osmnx/geometries.py,,_filter_gdf_by_polygon_and_tags,#Any#Any#Any#,923

Before Change


        // reset the index keeping the unique ids
        gdf.reset_index(inplace=True)
        // rename the new "index" column to "unique_id"
        gdf.rename(columns={"index": "unique_id"}, inplace=True)

    return gdf

After Change


        gdf.dropna(axis="columns", how="all", inplace=True)

    // multi-index gdf by element_type and osmid then return
    return gdf.set_index(["element_type", "osmid"])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: gboeing/osmnx
Commit Name: 9b2a4acfe78fa4be5325cfdedc146d606537d1e9
Time: 2021-02-09
Author: boeing@usc.edu
File Name: osmnx/geometries.py
Class Name:
Method Name: _filter_gdf_by_polygon_and_tags


Project Name: EpistasisLab/tpot
Commit Name: 2ab8c1444facbd46df8767a5badda5b9f1a50c29
Time: 2016-08-01
Author: supacoofoo@gmail.com
File Name: tpot/tpot.py
Class Name: TPOT
Method Name: predict


Project Name: kwgoodman/numerox
Commit Name: de831768952b9676e25d433044f9a34a381e9390
Time: 2017-11-04
Author: kwgoodman@gmail.com
File Name: numerox/report.py
Class Name:
Method Name: load_report