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

Implemented item for Index & MultiIndex #1744

Merged
merged 9 commits into from
Sep 9, 2020

Conversation

itholic
Copy link
Contributor

@itholic itholic commented Sep 2, 2020

Since Index.item() is un-deprecated from pandas 1.0.0 (pandas-dev/pandas#29250), this PR proposes Index.item() and MultiIndex.item().

>>> kidx = ks.Index([10])
>>> kidx.item()
10

>>> kmidx = ks.MultiIndex.from_tuples([('a', 'x')])
>>> kmidx.item()
('a', 'x')

@HyukjinKwon HyukjinKwon merged commit 883d630 into databricks:master Sep 9, 2020
@itholic itholic deleted the i_item branch September 10, 2020 11:47
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