筛选满足条件的数据行
# df
df[(df['name'] == 'name1') &(df['sex'] == 'male')]
更改相关参数
# df1, df2
a = df1[(df1['企业名称'] == value) & (df1['统一社会信用代码'] == code)]['法定代表人']
df2.loc[(df2['企业名称'] == value) & (df2['企业信用代码'] == code), ['法定代表人']] = a.to_list()[0]
标签:code,Python,df1,df2,df,筛选,pandas
From: https://www.cnblogs.com/jessecheng/p/16915388.html