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
results in: KeyError: "None of [Index([False, False, False, False, False, True, True, True, True, True], dtype='object')] are in the [index]"
or other strange errors because it is not picked up as 1-D boolean array and tries to be a list-like indexer or something else
The text was updated successfully, but these errors were encountered:
In the notebook Text_Extenstions_for_Pandas_Overview an example shows a TensorArray used as a boolean mask:
s[np.all(thresh.array, axis=1)]
This is now failing when the Series tries to validate the mask. Need to find a fix or another way to do this.
This has been resolved in the notebook with a workaround. I wanted to leave this open because Pandas should be able to recognize an extension array that converts to a 1-d bool array and use that as a boolean index.
Pandas can not recognize an extension array that when taken as numpy, it is a 1-D boolean array and use that array as a boolean mask for indexing.
results in:
KeyError: "None of [Index([False, False, False, False, False, True, True, True, True, True], dtype='object')] are in the [index]"
or other strange errors because it is not picked up as 1-D boolean array and tries to be a list-like indexer or something else
The text was updated successfully, but these errors were encountered: