I just want to add element in filtered index. Here's my code, A is dataframe and index is a column
my_input = A["index"] + 'a.age'
ML_filtered = ML["index"].isin(my_input)
Here's my error message
UFuncTypeError: ufunc 'add' did not contain a loop with signature matching types (dtype('<U21'), dtype('<U21')) -> dtype('<U21')
What's wrong with the code?
Edit
I try my_input = A["index"] + 'a.age'
The error is
TypeError: Cannot broadcast np.ndarray with operand of type <class 'list'>