Q. You want to read data from a CSV file in a dataframe but you want to provide your own column names to dataframe. What additional argument would you specify in read_csv( )?


Answer =

name argument

Example:-
pd.read_csv(‘file.csv’,name=[‘name’,’city’])

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post