Slice rows and columns from pandas DataFrame
Use
DataFrame.loc[]
to extract rows with index 35 to 43 (inclusive) from the 'Industry'
and 'Year Established'
columns.Premium
Python
Setting up Python environment...
Output