I have below csv file . How can i read line by line as per header and print the values
EmpId,EmpName,Age
1,X,21
2,Y,22
3,Z,23
I am trying to run below code and trying to print all the 3 columns
file = pd.read_csv('File.csv',names=[EmpId,EmpName,Age], delimiter=',')
for line in file:
EmployeeID = EmpID (I want to assign value of EmpId to this variable )
print(EmployeeID)
Example: as per my for loop when i am reading first line i want to print EmployeeID = 1