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

Fix documentation for DataFrame.corr and Series.corr. #10493

Merged
merged 1 commit into from
Mar 23, 2022

Conversation

bdice
Copy link
Contributor

@bdice bdice commented Mar 23, 2022

Follow-up work to fix documentation from #7141 before the 22.04 release.

@bdice bdice added doc Documentation Python Affects Python cuDF API. non-breaking Non-breaking change labels Mar 23, 2022
@bdice bdice self-assigned this Mar 23, 2022
@bdice bdice requested a review from a team as a code owner March 23, 2022 16:23
@@ -5664,12 +5664,20 @@ def cov(self, **kwargs):
df._set_column_names_like(self)
return df

def corr(self, method="pearson"):
def corr(self, method="pearson", min_periods=None):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the min_periods to align with pandas. Series.corr has this parameter even though it is not supported, so I thought we should do the same for DataFrame.corr. If this is not desirable, I can revert this change and make this PR docs-only.

@codecov
Copy link

codecov bot commented Mar 23, 2022

Codecov Report

Merging #10493 (d5e68e4) into branch-22.04 (18398ab) will increase coverage by 0.01%.
The diff coverage is 85.71%.

@@               Coverage Diff                @@
##           branch-22.04   #10493      +/-   ##
================================================
+ Coverage         86.16%   86.17%   +0.01%     
================================================
  Files               141      141              
  Lines             22501    22510       +9     
================================================
+ Hits              19387    19398      +11     
+ Misses             3114     3112       -2     
Impacted Files Coverage Δ
python/cudf/cudf/core/dataframe.py 93.50% <77.77%> (-0.09%) ⬇️
python/cudf/cudf/core/series.py 95.19% <100.00%> (+0.01%) ⬆️
python/cudf/cudf/core/column/string.py 88.91% <0.00%> (+0.12%) ⬆️
python/cudf/cudf/core/groupby/groupby.py 91.72% <0.00%> (+0.22%) ⬆️
python/cudf/cudf/core/tools/datetimes.py 84.49% <0.00%> (+0.30%) ⬆️
python/cudf/cudf/core/column/lists.py 90.69% <0.00%> (+0.46%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ce5bacb...d5e68e4. Read the comment docs.

@bdice
Copy link
Contributor Author

bdice commented Mar 23, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 9edcbd4 into rapidsai:branch-22.04 Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Documentation non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants