“df = df.apply(lambda x: np.square(x) if x.name in [ 'a', 'e', 'g'] else x, axis=1)” Code Answer


df = df.apply(lambda x: np.square(x) if x.name in [ 'a', 'e', 'g'] else x, axis=1)
python by Homeless Hamster on Feb 07 2021 Comment
0
Add a Grepper Answer

Python answers related to “df = df.apply(lambda x: np.square(x) if x.name in [ 'a', 'e', 'g'] else x, axis=1)”


Python queries related to “df = df.apply(lambda x: np.square(x) if x.name in [ 'a', 'e', 'g'] else x, axis=1)”




Browse Python Answers by Framework


More “Kinda” Related Python Answers View All Python Answers »




Browse Popular Code Answers by Language




Browse Other Code Languages




X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.