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 vote105 views1 answer
- 1 vote110 views2 answers
- 0 vote57 views3 answers
- 0 vote103 views1 answer
- 21 votes105 views4 answers
- 8 votes102 views5 answers
- 6 votes101 views2 answers
- 0 vote133 views5 answers
- 3 votes114 views3 answers
- 0 vote113 views1 answer