np.piecewise(matrix, cond_list, value_list) ValueError: with 1 condition(s), either 1 or 2 functions are expected matrix需要改为numpy.array,类型为object new_data = np.array(column_data).astype('object')