Slice rows from pandas DataFrame

Extract the rows with index 5 to 10 (inclusive) from the companies DataFrame and assign them to a variable called rows. Use DataFrame.loc[] to slice the rows.
Python
Setting up Python environment...
Output