CBSE Class 12 Informatics Practices
Question 28 of 44
Data Handling using Pandas — Question 29
Back to all questionsTo read data from a CSV file into a DataFrame while providing our own column names, we can use the names argument in the read_csv() function. The syntax is : <DF> = pandas.read_csv(<filepath>, names = <sequence containing column names>).