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

DataFrame.corr returns dataframe without index #2897

Closed
ajpotts opened this issue Jan 5, 2024 · 0 comments · Fixed by #3012
Closed

DataFrame.corr returns dataframe without index #2897

ajpotts opened this issue Jan 5, 2024 · 0 comments · Fixed by #3012
Assignees
Labels
bug Something isn't working

Comments

@ajpotts
Copy link
Contributor

ajpotts commented Jan 5, 2024

DataFrame.corr returns a dataframe. That dataframe should have indices with values matching the columns, but it does not.

The following example demonstrates the discrepancies between arkouda and pandas in this instance:

pd_df = pd.DataFrame([(.2, .3), (.0, .6), (.6, .0), (.2, .1)], columns=['dogs', 'cats'])
ak_df = ak.DataFrame(df)

display(pd_df.corr())
dogs cats
dogs 1.000000 -0.851064
cats -0.851064 1.000000
display(ak_df.corr())
dogs cats
0 1.000000 -0.851064
1 -0.851064 1.000000

@ajpotts ajpotts added the bug Something isn't working label Jan 5, 2024
@ajpotts ajpotts self-assigned this Jan 19, 2024
ajpotts added a commit to ajpotts/arkouda that referenced this issue Feb 29, 2024
github-merge-queue bot pushed a commit that referenced this issue Mar 1, 2024
Co-authored-by: Amanda Potts <ajpotts@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant