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 vote123 views1 answer
- 2 votes159 views1 answer
- 2 votes144 views1 answer
- 0 vote105 views1 answer
- 0 vote104 views1 answer
- 3 votes138 views1 answer
- 95 votes116 views6 answers
- 1 vote110 views1 answer
- 2 votes106 views1 answer
- 6 votes100 views3 answers