Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Skip merging the column named 'is_installed' #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions 0_train/2_supGNN/merge_train_FE_and_train_supgnn_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ def merge_datasets(dataset, embedding, feats_to_drop=None):
reset_ind_copy_fullds_df = copy_fullds_df.reset_index(drop=True)
reset_ind_copy_emb_df = copy_emb_df.reset_index(drop=True).drop(columns=feats_to_drop)
assert reset_ind_copy_fullds_df.shape[0] == reset_ind_copy_emb_df.shape[0]

if "is_installed" in reset_ind_copy_emb_df.columns:
reset_ind_copy_emb_df.drop(columns=["is_installed"], inplace=True)

rearranged_df = reset_ind_copy_fullds_df.merge(reset_ind_copy_emb_df, on='f_0', how='left', suffixes=('_1', '_2'))
assert rearranged_df.shape[0] == reset_ind_copy_fullds_df.shape[0]
return rearranged_df
Expand Down