Dataframe stu_alcol looks like following:
school sex age address famsize Pstatus Medu Fedu Mjob Fjob reason guardian
0 GP F 18 U GT3 A 4 4 at_home teacher course mother
1 GP F 17 U GT3 T 1 1 at_home other course father
2 GP F 15 U LE3 T 1 1 at_home other other mother
3 GP F 15 U GT3 T 4 2 health services home mother
4 GP F 16 U GT3 T 3 3 other other home father
Goal is to multiply all integer values with 10 (playing with data)
This code however throws 'invalid syntax' error
stu_alcol.transform(lambda x: x*10 if isinstance(x, int))
Can anyone help? Please understand that I am aware of other possible solutions. I just want to understand what can be possibly wrong here.