Skip to content
Advertisement

Compare two dataframes with same index using one column

I have the following two dataframes (samples). I’d like to know which companies had their sales changed between the two dataframes. For example, AAPL is different in the second dataframe.

JavaScript

Advertisement

Answer

This you can using ne (not equal)

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement