Skip to content

How to do if power function assert get error ? #24

@eromoe

Description

@eromoe

I got this error on my datasets:

157 assert np.array_equal(df.index.sort_values(), df.index), "Index is not sorted"
158 result = np.sign(df) * np.abs(df) ** p
--> 159 assert ((result.std() == 0) | (result.corrwith(df) >= 0.9)).all()
160 return result

AssertionError:

After some research I find the correlation is not match the assert
image

What should I do in this case ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions