Welcome to the Simplilearn Community

Want to join the rest of our members? Sign up right away!

Sign Up

Search results

  1. R

    Nirendu Konar Feb 20,21,27,28 Mar 6,7,13,14,20,21,27 Data Science with Python

    Hi Nirendu, CSV was fine, the error got resolved by removing [ ] from 'No'. Code that worked: df.loc[df['YearsAtCompany'] < 7, ['Loyal_Emp']] = 'No' Thanks, Rajat
  2. R

    Nirendu Konar Feb 20,21,27,28 Mar 6,7,13,14,20,21,27 Data Science with Python

    Hello Nirendu, I am observing this value error while executing the code for HR Attrition that we covered during the class, can you please advise what am I missing here. Thanks, Rajat Code: df['Loyal_Emp'] = 'Yes' #df.head(5) df.loc[df['YearsAtCompany'] < 7, ['Loyal_Emp']] = ['No'] df.head(5)...
  3. R

    Nirendu Konar Feb 20,21,27,28 Mar 6,7,13,14,20,21,27 Data Science with Python

    Hello Nirendu/Suraj, Can't find the class recording for March 6th. Can you please help check if the recording is available? Thanks, Rajat
Top