Skip to content

Conversation

@vikram-narayan
Copy link
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()

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

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.

4 participants