When I run the below statement,
Admin1 = Predict_JobFamily.loc[Predict_JobFamily.Job_Family_Code == 1]
Admin_Final = JobFunction(Admin1, vectAdmin, model_admin)
I get an error saying,
SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_index,col_indexer] = value instead
I have also tried using .loc
, even then same warning arises. I tried even .at
instead of .loc
but no use.