Fix Unnamed:0 When Reading a CSV in pandas

Fix Unnamed:0 When Reading a CSV in pandas

Sometimes, when reading a CSV in pandas, you will get a Unnamed:0 column. To fix this, add index_col=0 to pandas.read_csv.

My previous tips on pandas.

Search

Scroll to Top

Work with Khuyen Tran

Work with Khuyen Tran