We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 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)
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
display(pd_df.corr())
display(ak_df.corr())
The text was updated successfully, but these errors were encountered:
Closes Bears-R-Us#2897 DataFrame.corr returns dataframe without index
dade886
Closes #2897 DataFrame.corr returns dataframe without index (#3012)
3b9f8f7
Co-authored-by: Amanda Potts <ajpotts@users.noreply.github.com>
ajpotts
Successfully merging a pull request may close this issue.
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
The text was updated successfully, but these errors were encountered: