I have imported the first three columns of a .csv file named as Time, Test 1 and Test 2 in my python program.
import pandas as pd
fields = ['Time', 'Time 1', 'Time 2']
df=pd.read_csv('file.csv', skipinitialspace=True, usecols=fields)
Here is the file which I imported in the program.
How can I make a function which finds the mean/average of the values in the Test 1 column between a given time limit? The time limits (starting and end values) are to be taken as the parameters in the function.
e.g., I want to find the average of the values in the column Test 1 from 0.50 seconds to 4.88 seconds. The limits (0.50 and 4.88) would be the function's parameter.