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 from_product() for MultiIndex #1144

Merged
merged 2 commits into from
Dec 23, 2019

Conversation

itholic
Copy link
Contributor

@itholic itholic commented Dec 19, 2019

https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.MultiIndex.from_product.html#pandas.MultiIndex.from_product

>>> numbers = [0, 1, 2]
>>> colors = ['green', 'purple']
>>> ks.MultiIndex.from_product([numbers, colors],
...                            names=['number', 'color'])
MultiIndex([(0,  'green'),
            (0, 'purple'),
            (1,  'green'),
            (1, 'purple'),
            (2,  'green'),
            (2, 'purple')],
           names=['number', 'color'])

@codecov-io
Copy link

codecov-io commented Dec 19, 2019

Codecov Report

Merging #1144 into master will decrease coverage by 0.08%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1144      +/-   ##
==========================================
- Coverage   95.19%   95.11%   -0.09%     
==========================================
  Files          35       35              
  Lines        7071     7078       +7     
==========================================
+ Hits         6731     6732       +1     
- Misses        340      346       +6
Impacted Files Coverage Δ
databricks/koalas/indexes.py 96.49% <100%> (+0.11%) ⬆️
databricks/koalas/plot.py 93.33% <0%> (-0.96%) ⬇️
databricks/koalas/frame.py 96.76% <0%> (-0.12%) ⬇️
databricks/koalas/missing/indexes.py 100% <0%> (ø) ⬆️

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 468bf3a...b3b2a94. Read the comment docs.

@HyukjinKwon HyukjinKwon merged commit e6512d9 into databricks:master Dec 23, 2019
@itholic itholic deleted the mi_from_product branch January 2, 2020 07:55
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