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

block ids and tests #3

Merged
merged 6 commits into from
Jul 15, 2019
Merged

block ids and tests #3

merged 6 commits into from
Jul 15, 2019

Conversation

RoyalTS
Copy link
Contributor

@RoyalTS RoyalTS commented Jul 15, 2019

lots of the tests are currently failing, which is because the treatment assignment shares just aren't right. Still valuable to have tests against that.

RoyalTS and others added 6 commits July 12, 2019 07:40
…e the treatments assigned

removed unused variable

replaced code by simple pandas ngroup call

no more inplace operations

added test to check the right number of block ids was returned

minor syntax change

assigned column and drop old one

added a block id to the return df to retrieve within which blocks the treatments were assigned

added blank line at end of test file

added a block id to the return df to retrieve within which blocks were the treatments assigned, added testing to check the number of ids produced

moved sorting after all checks are done, and replaced syntax for filtering on columns to avoid problems if input has column named 'block'

added a block id to the return df to retrieve within which blocks were the treatments assigned, added corresponding tests, moved sorting after all checks are done, and replaced syntax for filtering on columns to avoid problems if input has column named 'block'
@manmartgarc manmartgarc merged commit 20fc2c5 into manmartgarc:master Jul 15, 2019
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

Successfully merging this pull request may close these issues.

3 participants