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

Implement std and var at rolling and expanding in Series, Frame, SeriesGroupBy, FrameGroupBy #1037

Merged
merged 1 commit into from
Nov 14, 2019

Conversation

HyukjinKwon
Copy link
Member

This PR implements std and var at rolling and expanding in Series, Frame, SeriesGroupBy, FrameGroupBy.

>>> s = ks.Series([5, 5, 6, 7, 5, 5, 5])
>>> s.rolling(3).std()
0         NaN
1         NaN
2    0.577350
3    1.000000
4    1.000000
5    1.154701
6    0.000000
Name: 0, dtype: float64
>>> df = ks.DataFrame({"A": s.to_numpy(), "B": s.to_numpy() ** 2})
>>> df.rolling(2).std()
          A          B
0       NaN        NaN
1  0.000000   0.000000
2  0.707107   7.778175
3  0.707107   9.192388
4  1.414214  16.970563
5  0.000000   0.000000
6  0.000000   0.000000

@HyukjinKwon
Copy link
Member Author

cc @itholic since you're working on this.

@softagram-bot
Copy link

Softagram Impact Report for pull/1037 (head commit: 72e21b6)

⭐ Change Overview

Showing the changed files, dependency changes and the impact - click for full size
(Open in Softagram Desktop for full details)

📄 Full report

Impact Report explained. Give feedback on this report to [email protected]

@codecov-io
Copy link

codecov-io commented Nov 11, 2019

Codecov Report

Merging #1037 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1037      +/-   ##
==========================================
+ Coverage    95.1%   95.11%   +0.01%     
==========================================
  Files          34       34              
  Lines        6758     6774      +16     
==========================================
+ Hits         6427     6443      +16     
  Misses        331      331
Impacted Files Coverage Δ
databricks/koalas/missing/window.py 100% <ø> (ø) ⬆️
databricks/koalas/window.py 97.38% <100%> (+0.25%) ⬆️

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 0baa4f0...72e21b6. Read the comment docs.

@HyukjinKwon HyukjinKwon merged commit 5012eb3 into databricks:master Nov 14, 2019
@HyukjinKwon
Copy link
Member Author

Merging it for today's release

@HyukjinKwon HyukjinKwon deleted the exp-rol-std-var branch September 11, 2020 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants