text_html_output_1.png
data1 = X_train[X_train['Husband'] == 1]
data2 = X_train[X_train['Married-civ-spouse'] == 1]
data3 = X_train.loc[(X_train['Sales'] == 1) | (X_train['Prof-specialty'] == 1) | (X_train['Exec-managerial'] == 1)]
data4 = X_train.loc[~((X_train['Husband'] == 1) | (X_train['Married-civ-spouse'] == 1) | ((X_train['Sales'] == 1) | (X_train['Prof-specialty'] == 1) | (X_train['Exec-managerial'] == 1)))]
print(data1.shape, data2.shape, data3.shape, data4.shape)