Skip to content

Conversation

@HyukjinKwon
Copy link
Member

@HyukjinKwon HyukjinKwon commented Jan 23, 2020

This PR implements Index/MultiIndex.identical.

import databricks.koalas as ks
idx = ks.Index(['a', 'b', 'c'])
midx = ks.MultiIndex.from_tuples([('a', 'x'), ('b', 'y'), ('c', 'z')])
idx.identical(idx)
midx.identical(idx)
from databricks.koalas.config import option_context
with option_context('compute.ops_on_diff_frames', True):
    idx.identical(ks.Index(['a', 'b', 'c']))


def identical(self, other):
"""
Similar to equals, but check that other comparable attributes are
Copy link
Member Author

Choose a reason for hiding this comment

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

I will add equals after this PR.

@codecov-io
Copy link

codecov-io commented Jan 23, 2020

Codecov Report

Merging #1215 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1215      +/-   ##
==========================================
+ Coverage   95.21%   95.21%   +<.01%     
==========================================
  Files          35       35              
  Lines        7249     7254       +5     
==========================================
+ Hits         6902     6907       +5     
  Misses        347      347
Impacted Files Coverage Δ
databricks/koalas/missing/indexes.py 100% <ø> (ø) ⬆️
databricks/koalas/indexes.py 96% <100%> (+0.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fc8b8f0...d72e7da. Read the comment docs.

@HyukjinKwon HyukjinKwon merged commit 075b92b into databricks:master Jan 23, 2020
@HyukjinKwon
Copy link
Member Author

I'm merging for today's release.

@HyukjinKwon HyukjinKwon deleted the index-identical branch September 11, 2020 07:52
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.

2 participants