Skip to content

MAINT: use int for groupby#92

Open
vikram-narayan wants to merge 3 commits intomasterfrom
change-groupby
Open

MAINT: use int for groupby#92
vikram-narayan wants to merge 3 commits intomasterfrom
change-groupby

Conversation

@vikram-narayan
Copy link
Copy Markdown
Contributor

Instead of using the index name in the call to groupby, use the index level number.

2017-01-02 0.821872 1.520515
"""
risk_exposures = factor_loadings.multiply(positions, axis='rows')
return risk_exposures.groupby(level='dt').sum()
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is there a test we can add/modify to go along with this change?

@ssanderson
Copy link
Copy Markdown

LGTM assuming tests pass

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