I have 2 dataframes, one having individual data and the other dataframe is a configuration rule for the individual data. These are the dataframes:
df1:
employee_Id first_Name last_Name email_Address
0 E1000 Manas Jani [email protected]
1 E2000 Jim Kong [email protected]
2 E3000 Olila Jayavarman [email protected]
3 E4000 Lisa Kopkingg [email protected]
4 E5000 Kishore Pindhar [email protected]
5 E6000 Gobi Nadar [email protected]
df2:
Input_file_name Is_key Config_file_name Value
0 Employee ID Y employee_Id idTypeCode:001
4 EntityID N entity_Id entity_Id:01
I need my resulting individual dataframe to look like this,
Result_df:
employee_Id first_Name last_Name email_Address idTypeCode entity_Id
0 E1000 Manas Jani [email protected] 001 01
1 E2000 Jim Kong [email protected] 001 01
2 E3000 Olila Jayavarman [email protected] 001 01
3 E4000 Lisa Kopkingg [email protected] 001 01
4 E5000 Kishore Pindhar [email protected] 001 01
5 E6000 Gobi Nadar [email protected] 001 01
I am unable to understand how to get the Value column to the final dataframe.