Get first 3 rows of pandas DataFrame
Use the
head()
function to get the first 3 rows of the companies dataset and assign them to a variable named head.Premium
Python
Setting up Python environment...
Output