Create a program, presidents.py, that takes two arguments. These arguments will correspond to the start and stop of a slice, respectively. It will slice the heights column in the president_heights.csv files.
x = input("Enter first number:")
y = input("Enter second number:")
result = df.iloc[:x,y].mean(axis=0) print(result)
Getting error:
Location based indexing can only have \[integer, integer slice (START point is INCLUDED, END point is EXCLUDED), listlike of integers, boolean array\] types