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
- 30 votes100 views6 answers
- 5 votes122 views6 answers
- 0 vote85 views1 answer
- 1 vote93 views2 answers
- 0 vote92 views1 answer
- 2 votes141 views1 answer
- 0 vote121 views1 answer
- 3 votes104 views3 answers
- 129 votes98 views6 answers
- 0 vote60 views1 answer