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
- 0 vote171 views1 answer
- 1 vote180 views1 answer
- 0 vote196 views1 answer
- 7 votes183 views4 answers
- 0 vote163 views1 answer
- 0 vote181 views1 answer
- 0 vote184 views1 answer
- 0 vote179 views1 answer
- 0 vote213 views1 answer
- 0 vote168 views1 answer