import numpy as np
import pandas as pd
def ExtractCsv( Start,End):
    lsta,lstb,lstc,lstd= list(),list(),list(),list()
    j=0;
    for i in range(Start,End+1):
        f1 = pd.read_csv('C:/Users/sanilm/Desktop/Desktop_backup/opc/csv/Newfolder/fault_data.tar/fault_data/test/healthy'+ str(i)+'.csv');
        listc=list(f1['c'])
        listd=list(f1['d'])
        liste=list(f1['e'])
        listf=list(f1['f'])
        lsta.append(listc)
        lstb.append(listd)
        lstc.append(liste)
        lstd.append(listf)
    print(lsta)
    return f1
f1=ExtractCsv(1,3)
input csv file there are 3 files:
a   b   c   d   e   f
1   10  2901.1  13.915  39.812  6.2647
1   10  2906.1  13.368  42.083  12.945
1   10  2805.3  12.951  42.261  13.398
1   10  3049.2  14.101  43.499  15.237
1   10  2854.8  13.978  42.699  9.1297
expected output: [2901.1, 2906.1, 2805.3, 3049.2, 2854.8, 2860.9, 2992.9, 2867.1, 2947.6, 2679.4, 2891.2, 2853.8, 2896.4, 3114.6, 3155.3, 2930.2, 2810.0, 2903.5]
but the output am getting is [[2901.1, 2906.1, 2805.3, 3049.2, 2854.8], [2860.9, 2992.9, 2867.1, 2947.6, 2679.4, 2891.2], [2853.8, 2896.4, 3114.6, 3155.3, 2930.2, 2810.0, 2903.5]]
any suggestions on how can i achieve my expected output
 
     
    