dynamically create string from three data frames
问题 Dynamically create string from pandas column I have three data frame like below one is df and another one is anomalies:- d = {'10028': [0], '1058': [25], '20120': [29], '20121': [22],'20122': [0], '20123': [0], '5043': [0], '5046': [0]} df1 = pd.DataFrame(data=d) Basically anomalies in a mirror copy of df just in anomalies the value will be 0 or 1 which indicates anomalies where value is 1 and non-anomaly where value is 0 d = {'10028': [0], '1058': [1], '20120': [1], '20121': [0],'20122': [0]