Skip to content

Correlations.py RuntimeWarning #57

@MountainCountry

Description

@MountainCountry

When trying to run the 'optimisation.py':

In [86]: print(system.accounts.portfolio().stats())
Calculating pandl for portfolio
Calculating instrument div. multiplier
Calculating instrument correlations
C:\Anaconda3\lib\site-packages\systems\portfolio.py:665: FutureWarning:
.resample() is now a deferred operation
You called diff(...) on this deferred object which materialized it into a dataframe
by implicitly taking the mean. Use .resample(...).mean() instead
pandl = pandl.cumsum().resample(frequency).diff()
Correlation estimate
C:\Anaconda3\lib\site-packages\syscore\correlations.py:181: RuntimeWarning: invalid value encountered in less
corrmat[corrmat < 0] = 0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions