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

Created Subject class with data obtained from parsing demographics.csv #30

Merged
merged 2 commits into from
Nov 24, 2015

Conversation

yingtluo
Copy link
Contributor

No description provided.

if subject.gender == gender:
ids.append(subject.id)
return ids

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use python generator expressions:

return [s.gender for s in subjects if s.gender == gender]

jodreen added a commit that referenced this pull request Nov 24, 2015
Created Subject class with data obtained from parsing demographics.csv
@jodreen jodreen merged commit f79fc9f into berkeley-stat159:master Nov 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants