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
- 2 votes176 views1 answer
- 0 vote155 views1 answer
- 0 vote166 views1 answer
- 0 vote162 views1 answer
- 0 vote129 views1 answer
- 9 votes171 views2 answers
- 0 vote151 views2 answers
- 0 vote180 views1 answer
- 14 votes167 views4 answers
- 0 vote174 views1 answer