i am trying to import a dataset in jupyter notebook and i wrote the following code following a tutorial i was following on youtube but i couldn't run the dataset. here is the code;
df = pandas.read_csv('C:\\Users\\CMuasya\\downloads\\data_wrangling_datasets\\data\\gapminder.tsv', sep='\t')
df = head()
the error being displayed is as follows;
--------------------------------------------------------------------------- NameError Traceback (most recent call last) in ----> 1 df = head()
NameError: name 'head' is not defined
what could be the problem and what is the solution to the error? kind regards
df = df.head()- Barmar