Closed cm3 closed 7 years ago
use
df.loc[i, 'thumbnail'] = filename
instead
Typical reason of this error is duplicate column names.
Csv output with unnamed index can have caused that. Now, csv is output without the index column.
df.to_csv(csv, encoding="utf-8", index=False)
Ref:
I think this also solved my 'Incompatible Indexer with Series' error. I'm not positive what it was but my issue was:
I re imported the data making sure to specify encoding on each (used utf-8), made sure there where no duplicate column names in the data sets, and now everything behaves as normal! Guess that's what I get for assuming, implicit < explicit when it comes to pandas!!!! Specify your encoding, keep unique names, and remember identity vs equality !
cause error in some rows: