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

Df reset index #656

Merged
merged 43 commits into from
Apr 9, 2020
Merged

Conversation

Rubtsowa
Copy link
Contributor

@Rubtsowa Rubtsowa commented Mar 2, 2020

No description provided.

@pep8speaks
Copy link

pep8speaks commented Mar 2, 2020

Hello @Rubtsowa! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-03-27 07:35:26 UTC

Comment on lines 1755 to 1756
old_index = f'old_index'
func_lines += [f' old_index = {df}.index']
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
old_index = f'old_index'
func_lines += [f' old_index = {df}.index']
old_index = 'old_index'
func_lines += [f' {old_index} = {df}.index']


Limitations
-----------
Reset the index of the DataFrame, and use the default one instead.
Copy link
Contributor

Choose a reason for hiding this comment

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

Why it doesn't say anything about supporting drop as literal values only?

if not (col_fill == '' or isinstance(col_fill, types.Omitted)):
raise TypingError('{} Unsupported parameter col_fill. Given: {}'.format(func_name, col_fill))

if not isinstance(drop, types.Literal):
Copy link
Contributor

Choose a reason for hiding this comment

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

Below implementation will only work with Boolean literals, so the check must be aligned.

Copy link
Contributor

@kozlov-alexey kozlov-alexey left a comment

Choose a reason for hiding this comment

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

Please fix the bug with multiple columns

@AlexanderKalistratov AlexanderKalistratov merged commit ea2cbe4 into IntelPython:master Apr 9, 2020
@Rubtsowa Rubtsowa deleted the df_reset_index branch April 10, 2020 05:12
densmirn pushed a commit to densmirn/sdc that referenced this pull request Apr 12, 2020
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.

6 participants