Last answered:

22 Jan 2021

Posted on:

13 Jan 2021

0

K-Means

Hi, How can I drop the index column that appears without any heading after the csv file is read. Thanks.  
1 answers ( 0 marked as helpful)
Instructor
Posted on:

22 Jan 2021

0
Hi Padhmapriya,  thanks for reaching out! If you're reading a file using pandas read_csv function you can avoid transforming one of the columns to an index by setting the index parameter to false. Like so: df = pd.read_csv("filename", index = False)   Best,  365 Eli

Submit an answer