Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indexes as columns #2

Open
TomAugspurger opened this issue Jun 22, 2015 · 1 comment
Open

Indexes as columns #2

TomAugspurger opened this issue Jun 22, 2015 · 1 comment

Comments

@TomAugspurger
Copy link
Collaborator

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

  • look for A, if it's not found, check if df.index.name == 'A'?
  • allow mapping {'index': []} as a special case?
  • create new functions like index_within_set?
@jnmclarty
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants