0

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

enter image description here

I have also tried using .loc, even then same warning arises. I tried even .at instead of .loc but no use.

James Z
  • 12,209
  • 10
  • 24
  • 44
yugesh R
  • 23
  • 4

0 Answers0