I have a pandas dataframes from which I want to print the rows with index from 0-5 and from columns 2-3. I can print the first part using the below code.
df.iloc[0:5]
I want to print both the selected rows/columns together, to create a new dataframe with the selected rows/columns. How to do this?