import pandas as pd
import numpy as np
df_hr = pd.read_csv('human_resource.csv')
df_hr.head()
df_es = pd.read_csv('satisfaction.csv')
df_es.head()
df_hr.shape
df_es.shape
- Set employee_id column as an index column
df = df_hr.set_index('employee_id').join(df_es.set_index('EMPLOYEE #'))
df.head()
- Reset Index
df = df_hr.set_index('employee_id').join(df_es.set_index('EMPLOYEE #'))
df = df.reset_index()
df.head()
df.to_csv('hr_satisfaction', index=False)
df.head()