📌  相关文章
📜  df = df.apply(lambda x: np.square(x) if x.name in [ 'a', 'e', 'g'] else x, axis=1) - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:57.431000             🧑  作者: Mango

代码示例1
import numpy as np  # optional
import pandas as pd
print(pd.__version__)
print(pd.show_versions(as_json=True))