Head() is not showing the result

42 Views Asked by At
import pandas as pd
df = pd.read_csv("stock_data.csv")
df.head()

Is not showing the result: suggestion for improvement?

2

There are 2 best solutions below

0
cconsta1 On

Try printing df.head(). In your notebook type: print(df.head())

0
Alon Alush On

You need to print df.head:

import pandas as pd
df = pd.read_csv("stock_data.csv")
print(df.head())