I have a pandas dataframe. Suppose the column names are 'A', 'B', and 'C'.
How can I calculate the min and/or max of data in column 'A' inclusive of only rows m to p? Where m < p and m != 0 and p < the number of rows in the dataframe.
What if I store the column names in a list and want to iterate over them in a loop and get the max.
colNames = ['A', 'B', 'C']
for col in colNames:
# get the max here