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

Pass list of arrays to create MultiIndex #831

Closed
wesm opened this issue Feb 26, 2012 · 2 comments
Closed

Pass list of arrays to create MultiIndex #831

wesm opened this issue Feb 26, 2012 · 2 comments
Milestone

Comments

@wesm
Copy link
Member

wesm commented Feb 26, 2012

Make it easier to create a hierarchical index from a list of arrays in the Series and DataFrame constructors

@wesm
Copy link
Member Author

wesm commented May 7, 2012

OK, I just made this work minimally without as_multi, used pared down versions of your test cases:

In [2]: s = Series([1, 2, 3, 4], index=[[1, 1, 2, 2], [0, 0, 1, 1]])

In [3]: s
Out[3]: 
1  0    1
   0    2
2  1    3
   1    4

@wesm
Copy link
Member Author

wesm commented May 7, 2012

Need to add something to the docs for this guy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants