### Navigation

- index
- modules |
- next |
- previous |
- pandas 0.14.1 documentation »
- API Reference »

# pandas.Index.diff

`Index.``diff`(other)

  Compute sorted set difference of two Index objects

  Parameters : | other : Index or array-like
  Returns : | diff : Index

  Notes

  One can do either of these and achieve the same result

      >>> index - index2
      >>> index.diff(index2)

### Navigation

- index
- modules |
- next |
- previous |
- pandas 0.14.1 documentation »
- API Reference »