The general ways of Extracting a column value based on another column in Pandas were not working in my case.
I am having a data frame with two variables, Salary
and EducationLevels
. Salary is having continuous values while EducationLevels has four categories namely 'A', 'B', 'C',
and 'D'
. I need to get Salary values for EducxationLevel 'A'
. The below code is not working:
df['Salary'][df['EducationLevels']=="A]