Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AV_ClubMahindra/FeatureEngineering/ In [5] #2

Open
24893KuRohit opened this issue May 9, 2019 · 0 comments
Open

AV_ClubMahindra/FeatureEngineering/ In [5] #2

24893KuRohit opened this issue May 9, 2019 · 0 comments

Comments

@24893KuRohit
Copy link

Hi,

I am a learner and was going through your ClubMahindra Hackathon Feature Engineering file.
Could you please explain the benefits of the these steps or what you are trying to gain from this

member_id_info = pd.DataFrame()
member_id_info['memberid'] = train.memberid.unique()
member_id_info['tag'] = np.random.rand(member_id_info.shape[0])
member_id_info['val_tag'] = np.random.randint(1,6,member_id_info.shape[0])
member_id_info['tag'] = np.where(member_id_info.tag>0.2,"Train","Val")

Thanks in Advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant