engarde-dev / engarde

A library for defensive data analysis.
MIT License
501 stars 40 forks source link

Check matching df indexes #47

Open eigenfoo opened 7 years ago

eigenfoo commented 7 years ago

Hello!

Is there any way to check that two data frames have the same index using engarde? In other words, suppose I have two data frames that are indexed by date times. Is there any way to assert that the indexes are the same, and if they are not, to get a "diff" of the dates? I can't seem to find anything on checks.py but perhaps there's a nice trick that I'm missing.

Thanks! George