Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Conversation

Rubtsowa
Copy link
Contributor

@Rubtsowa Rubtsowa commented Apr 1, 2020

No description provided.

Copy link
Contributor

@densmirn densmirn left a comment

Choose a reason for hiding this comment

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

Looks you need to change docstring according to the changes.

@@ -1995,16 +1995,16 @@ def pct_change_overload(df, periods=1, fill_method='pad', limit=None, freq=None)
ty_checker = TypeChecker('Method {}().'.format(name))
ty_checker.check(df, DataFrameType)

if not isinstance(periods, (types.Integer, types.Omitted)):
if not isinstance(periods, (types.Integer, types.Omitted)) and periods != 1:
Copy link
Contributor

Choose a reason for hiding this comment

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

Why periods could not be equal to other values?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@densmirn periods could be equal to other values. This condition need that default value supported.

Comment on lines +2004 to +2007
if not isinstance(limit, (types.Omitted, types.NoneType)) and limit is not None:
ty_checker.raise_exc(limit, 'None', 'limit')

if not isinstance(freq, (types.Omitted, types.NoneType)):
if not isinstance(freq, (types.Omitted, types.NoneType)) and freq is not None:
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add unit test on situation when limit and freq are equal to None on the typing stage. Pay your attention that there are no such checks in Series.pct_change overload.

@@ -1954,7 +1954,7 @@ def pct_change_overload(df, periods=1, fill_method='pad', limit=None, freq=None)

Limitations
-----------
Parameters ``limit`` and ``freq`` are unsupported.
Parameters ``limit`` and ``freq`` are supported.
Copy link
Contributor

Choose a reason for hiding this comment

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

This statement doesn't look like a limitation.

@AlexanderKalistratov AlexanderKalistratov merged commit 5f408ba into IntelPython:master Apr 2, 2020
@Rubtsowa Rubtsowa deleted the change_df_pct_change branch April 7, 2020 06:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants