如何分析单个熊猫数据框?

我必须分析单个数据帧,并根据哪种运行更好得出结论? 下面是我的数据框

Requirement: Need to compare current run with all previous runs individually and tell wheather transaction is better or not. 
Note: Run_1, RUn2, Run_3 and current run are in seconds.
transaction_name,run_1,run2,run3,current_run
login,2,2.4,4,3
check_profile,1,5,4,2
check_timeline,5,2.4,4,5
logout,8,5.4,4,7
import pandas as pd
import numpy as np

def read_data():
    data_frame = pd.read_csv('data_points.csv')
    pd.set_option('display.max_columns', 500)
    return data_frame

def initial_analyisis(current_sla):
    data_frame = read_data()
    xyz = data_frame[data_frame.Run4 > data_frame.Run3 & data_frame['Run4'].astype(int) < current_sla]
    print(xyz)

if __name__ == '__main__':
    current_sla = 3
    initial_analyisis(current_sla)
评论