Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

ranked.ix['Target', 0:3] gives KeyError: 'Target' #5

Open
posttenebre opened this issue Nov 28, 2018 · 0 comments
Open

ranked.ix['Target', 0:3] gives KeyError: 'Target' #5

posttenebre opened this issue Nov 28, 2018 · 0 comments

Comments

@posttenebre
Copy link

I ran into an issue when running

# nf = eleven.calculate_nf(censored, ranked.ix['Target', 0:3], 'Control'
>> KeyError: 'Target'

I found that using ranked.loc[ranked.index[[0, 1, 2]], 'Target'] instead of ranked.ix['Target', 0:3] solved the problem.

I am simply adding this to the issues in case anyone else has the same problem.

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

No branches or pull requests

1 participant