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
- 2 votes180 views2 answers
- 0 vote181 views1 answer
- 8 votes180 views1 answer
- 2 votes160 views1 answer
- 1 vote148 views1 answer
- 0 vote166 views1 answer
- 0 vote173 views1 answer
- 0 vote163 views1 answer
- 0 vote167 views2 answers