I have two dataframes:
- One is called
data, with several columns including one calledbankwith different banks names. - The other is
banksand contains a list with each bank fromdata.
I need to create an individual dataframe for each bank from the original dataframe ("data"), iterating from the other dataframe ("banks").
I tried with something like this, but it doesn't work
for ind in banks.bank:
[ind] = data[(data['bank'] == [ind])]
These are samples of the data
I must divide the first dataframe for each bank of the second dataframe through the "bank" column


bancosanddatosusing the index?bankcolumn for each row of the second dataframe