ValueError: Can only compare identically-labeled Series objects

df[‘sign’] = np.where(dA[‘purple’] >=dd[‘ve’], ‘positive’, ‘negative’)

ValueError: Can only compare identically-labeled Series objects

Hi,

This error is not related to plotly. As the error message suggests, the dataframes don’t have the same index, so you can’t compare them… You can perhaps try to merge them in a single dataframe first and then make a column comparison.