Q. Write a program to read data from a CSV file where separator character is '@'. Make sure that :
* the top row is used as data, not as column headers.
* only 20 rows are read into dataframe.
Answer :-
import pandas as pd file='csv file.csv' dframe=pd.read_csv( file,sep='@',header=None,nrows=20) print(dframe)
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )