Df = df.apply(lambda x: np.square(x) if x.name in [ 'a', 'e', 'g'] else x, axis=1)
Df = df.apply(lambda x: np.square(x) if x.name in [ 'a', 'e', 'g'] else x, axis=1)
0
Source: machinelearningplus.com
- 1 vote193 views1 answer
- 0 vote192 views1 answer
- 0 vote190 views1 answer
- -1 vote210 views1 answer
- 0 vote175 views1 answer
- 2 votes196 views3 answers
- 3 votes176 views1 answer
- 0 vote196 views1 answer
- 0 vote214 views1 answer
- 1 vote188 views2 answers