With imports of .csv files, I created the following df.
I try to delete the rows with NaN in the column "Iberdrola, using the loop.
if symbol == 'Iberdrola':
df = df.dropna (subset = 'Iberdrola')
When executing I returned the error
TypeError: Index (...) must be called with a collection of some kind, 'Iberdrola' was passed
How could I correct this error?