### Navigation

- index
- modules |
- next |
- previous |
- pandas 0.13.1 documentation »
- API Reference »
- pandas.DatetimeIndex »

# pandas.DatetimeIndex.diff

`DatetimeIndex.``diff`(other)

  Compute sorted set difference of two Index objects

  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.13.1 documentation »
- API Reference »
- pandas.DatetimeIndex »