9885acac4edf3034b1b6e2335c61dd80d7abe8f9,pynets/utils.py,,collect_pandas_df_make,#Any#Any#Any#Any#,174

Before Change


                    valsB = valsA[(valsA.T != 0)]
                    means.append(np.nanmean(valsB))
                else:
                    means.append(np.nan)
            df_concatted_weight_means = pd.DataFrame(means).transpose()
            df_concatted_weight_means.columns = [str(col) + "_mean" for col in measures]
            df_concatted_std.columns = [str(col) + "_std_dev" for col in df_concatted_std.columns]
            result = pd.concat([df_concatted, df_concatted_std, df_concatted_weight_means], axis=1)

After Change


                else:
                    net_pick_out_path = "%s%s%s%s%s%s" % (subject_path, "/", str(ID), "_", name_of_network_pickle, "_rand_forest")
                df_rnd_forest.to_pickle(net_pick_out_path)
                df_rnd_forest.to_csv(net_pick_out_path + ".csv", index=False)

        except RuntimeWarning:
            print("%s%s%s" % ("\nWARNING: DATAFRAME CONCATENATION FAILED FOR ", str(ID), "!\n"))
            pass
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: dPys/PyNets
Commit Name: 9885acac4edf3034b1b6e2335c61dd80d7abe8f9
Time: 2018-11-06
Author: dpisner@utexas.edu
File Name: pynets/utils.py
Class Name:
Method Name: collect_pandas_df_make


Project Name: okfn-brasil/serenata-de-amor
Commit Name: 3c626088a7174c28d1b1a093143c4ca7b2b154fc
Time: 2016-11-25
Author: iirineu@gmail.com
File Name: src/fetch_yelp_info.py
Class Name:
Method Name:


Project Name: gyoisamurai/GyoiThon
Commit Name: 78b56b5b833d7ae74853c2809058848681520a80
Time: 2019-12-11
Author: gyoiler3@gmail.com
File Name: report_merger.py
Class Name: MergeReport
Method Name: get_target_report