-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
REF/TYP: pandas/core/window/*.py #37091
REF/TYP: pandas/core/window/*.py #37091
Conversation
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.
small comment, cc @simonjayhawkins
pandas/core/window/expanding.py
Outdated
args=None, | ||
kwargs=None, | ||
args: Optional[Tuple] = None, | ||
kwargs: Optional[Dict] = None, |
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.
we will eventually want to use disallow_any_generic as we increase strictness checks xref #30539
so for kwargs could probably use Dict[str, Any]
and for args, Tuple[Any, ...]
can you also add type parameters to Callable.
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. Done
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.
Thanks @mroeschke lgtm
@@ -60,6 +64,15 @@ def get_center_of_mass( | |||
return float(comass) | |||
|
|||
|
|||
def wrap_result(obj: "Series", result: np.ndarray) -> "Series": |
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.
for clarify should make this wrap_result_1d
, but can be in the future
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
Window
vsRolling