You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Imho this is caused by the following line, because the erratic assumption that the indices of labels and self.levels would be index-aligned. https://github.com/pandas-dev/pandas/blame/master/pandas/core/indexes/multi.py#L331
Hence the call to coerce_indexer_dtype casts the given labels to int8. This is because its l'ooking at the number of categories in level 0.
I would suggest to replace
forl, lev, labinzip(level, self.levels, labels):
new_labels[l] =_ensure_frozen(
lab, lev, copy=copy)._shallow_copy()
with
forl, labinzip(level, labels):
lev=self.levels[l]
new_labels[l] =_ensure_frozen(
lab, lev, copy=copy)._shallow_copy()
The text was updated successfully, but these errors were encountered:
Mofef
added a commit
to Mofef/pandas
that referenced
this issue
Jan 3, 2018
Imho this is caused by the following line, because the erratic assumption that the indices of
labels
andself.levels
would be index-aligned.https://github.com/pandas-dev/pandas/blame/master/pandas/core/indexes/multi.py#L331
Hence the call to
coerce_indexer_dtype
casts the givenlabels
to int8. This is because its l'ooking at the number of categories in level 0.I would suggest to replace
with
The text was updated successfully, but these errors were encountered: