iloc is a method in Pandas used to extract rows and columns from a DataFrame based on their integer position.