Learn to select specific rows and columns from a DataFrame using pandas.
Select rows from index 50 to 60 and print the result.
Select specific columns:
Customer ID
Age
Location
Display the rows of the selected columns.
Python Code:
#1
selected_rows = df[50:60]
selected_rows
#2.
selected_columns = df[['Customer ID', 'Age', 'Location']]
selected_columns