-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: explain EWM #34901
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
Closed
Closed
DOC: explain EWM #34901
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
fb5eac0
Fixed docs issue #34867
c165fc3
fix pep 8 issues
KrishnaSai2020 2e0386c
update ewf.py
KrishnaSai2020 e726629
refactoring name to exponential moving
KrishnaSai2020 f95216c
update ewf.py
KrishnaSai2020 d4343e3
renamed class
KrishnaSai2020 38ca722
renamed file
KrishnaSai2020 b10bc72
updated init.py
KrishnaSai2020 61f316b
update generic.py
KrishnaSai2020 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10460,7 +10460,7 @@ def _add_series_or_dataframe_operations(cls): | |
Add the series or dataframe only operations to the cls; evaluate | ||
the doc strings again. | ||
""" | ||
from pandas.core.window import EWM, Expanding, Rolling, Window | ||
from pandas.core.window import EWF, Expanding, Rolling, Window | ||
|
||
@doc(Rolling) | ||
def rolling( | ||
|
@@ -10507,7 +10507,7 @@ def expanding(self, min_periods=1, center=False, axis=0): | |
|
||
cls.expanding = expanding | ||
|
||
@doc(EWM) | ||
@doc(EWF) | ||
def ewm( | ||
self, | ||
com=None, | ||
|
@@ -10520,7 +10520,7 @@ def ewm( | |
axis=0, | ||
): | ||
axis = self._get_axis_number(axis) | ||
return EWM( | ||
return EWF( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. still need to change? |
||
self, | ||
com=com, | ||
span=span, | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from pandas.core.window.ewm import EWM # noqa:F401 | ||
from pandas.core.window.ewf import EWF # noqa:F401 | ||
from pandas.core.window.expanding import Expanding, ExpandingGroupby # noqa:F401 | ||
from pandas.core.window.rolling import Rolling, RollingGroupby, Window # noqa:F401 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would be ok with actually writing this classname out if we are going to change it, e.g. ExponentialMoving or ExponentialMovingWindow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good might as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quick one could you clarify what you mean by writing it out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think @jreback meant you could rename
EWM
toExponentialMoving
orExponentialMovingWindow
incore.window.ewm.py
where the class is createdThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
k
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes resolved