print(dogs.iloc[2:5, 1:4])
print(temperatures.iloc[22,1]) # Get 23rd row, 2nd column (index 22, 1)
print(temperatures.iloc[:5,:]) # Use slicing to get the first 5 rows
print(temperatures.iloc[:,2:4]) # Use slicing to get columns 2 to 3
print(temperatures.iloc[:5,2:4]) # Use slicing in both directions at once