I have a csv file that contains information like
name salary department
a 2500 x
b 5000 y
c 10000 y
d 20000 x
I need to convert this using Pandas to the form like
dept name position
x a Normal Employee
x b Normal Employee
y c Experienced Employee
y d Experienced Employee
if the salary <=8000 Position is Normal Employee
if the salary >8000 && <=25000 Position is Experienced Employee
My default code for group by
import csv
import pandas
pandas.set_option('display.max_rows', 999)
data_df = pandas.read_csv('employeedetails.csv')
#print(data_df.columns)
t = data_df.groupby(['dept'])
print t
What are the changes i need to make in this code to get the output that i mentioned above