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 vote161 views3 answers
- 10 votes173 views5 answers
- 0 vote169 views1 answer
- 6 votes169 views3 answers
- 0 vote166 views1 answer
- 5 votes155 views5 answers
- 11 votes173 views2 answers
- 1 vote168 views3 answers
- 4 votes233 views2 answers
- 4 votes201 views2 answers