FutureWarning: in the future, boolean array-likes will be handled as a boolean array index

>>> import numpy as np
>>> test=np.array([1,2,3])
>>> test3=test[[False,True,False]]
__main__:1: FutureWarning: in the future, boolean array-likes will be handled as a boolean array index
>>> test3=test[np.array([False,True,False])]
>>> test3
array([2])
>>>

你可能感兴趣的:(python,pandas,python)