-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: pandas.tools.util.cartesian_product doesn't work on DatetimeIndex objects #6439
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
Labels
Milestone
Comments
looks ok to me, what is the problem? |
It's the order that is not OK:
See difference between |
ahh....I c...ok marking as a bug |
@shoyer pull-request for this? |
Sure - I'll send something in tomorrow or Monday. On Sat, Feb 22, 2014 at 6:18 AM, jreback [email protected] wrote:
|
shoyer
added a commit
to shoyer/pandas
that referenced
this issue
Feb 23, 2014
Fixes GitHub issue pandas-dev#6439.
gouthambs
pushed a commit
to gouthambs/pandas
that referenced
this issue
Mar 12, 2014
Fixes GitHub issue pandas-dev#6439.
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This breaks the new
pandas.MultiIndex.from_product
function when one of the product arrays is DatetimeIndex. Observe:If
cartesian_product
was working properly, the dates should actually be [1999, 2000, 1999, 2000].The simple fix would be to convert everything into a numpy array before calculating the cartesian product.
The text was updated successfully, but these errors were encountered: