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 DataFrame.__neg__ #1847

Merged
merged 1 commit into from
Oct 13, 2020
Merged

Conversation

HyukjinKwon
Copy link
Member

This PR implements __neg__:

>>> from databricks import koalas as ks
>>> kdf = ks.range(10)
>>> -kdf
   id
0   0
1  -1
2  -2
3  -3
4  -4
5  -5
6  -6
7  -7
8  -8
9  -9
>>> pdf = kdf.to_pandas()
>>> -pdf
   id
0   0
1  -1
2  -2
3  -3
4  -4
5  -5
6  -6
7  -7
8  -8
9  -9

Copy link
Collaborator

@ueshin ueshin left a comment

Choose a reason for hiding this comment

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

ah, nice. LGTM.

@ueshin
Copy link
Collaborator

ueshin commented Oct 13, 2020

Thanks! merging.

@ueshin ueshin merged commit 4bb45e5 into databricks:master Oct 13, 2020
@itholic
Copy link
Contributor

itholic commented Oct 13, 2020

Cool.

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