engarde-dev / engarde

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

Indexes as columns #2

Open TomAugspurger opened 9 years ago

TomAugspurger commented 9 years ago

How to handle e.g.

df.pipe(ck.within_set, items={'A': [1, 2]})

But instead of the column A you want the index. Do we

jnmclarty commented 9 years ago

+1 for "look for A, if it's not found, check if df.index.name == 'A'?"