Currently I'm trying to save my list `bitrateListEqualized` of format:

```
[[2.221408], ['Wed Oct  2 11:05:28 2019']]
[[2.347744], ['Wed Oct  2 11:05:29 2019']]
[[2.47408], ['Wed Oct  2 11:05:30 2019']]

```

to `.csv` file using such code:

```
with open("/home/user/bitrateFolder/Bitrate_history_ip_{}:{}.csv".format(MCAST_GRP,MCAST_PORT,),"w+", newline='') as csvfile:
        thewriter = csv.writer(csvfile, delimiter=',')
        thewriter.writerow(['values','dates'])
        for x in range(len(bitrateListEqualized)):
            bitrateListEqualized[x][0][0] = bitrateListEqualized[x][0][0]*8/(SAMPLING_TIME*1000000)
            data = [bitrateListEqualized[x]]
            thewriter.writerow(data)
        thewriter.writerow(max(bitrateListEqualized))
        thewriter.writerow(min(bitrateListEqualized))

```

the result of saving such list is:

```
values,dates
"[[10.73856], ['Wed Oct  2 11:11:23 2019']]"
"[[10.780672], ['Wed Oct  2 11:11:24 2019']]"
"[[10.73856], ['Wed Oct  2 11:11:25 2019']]"
"[[10.73856], ['Wed Oct  2 11:11:26 2019']]"
"[[10.759616000000001], ['Wed Oct  2 11:11:27 2019']]"
"[[10.73856], ['Wed Oct  2 11:11:28 2019']]"
"[[10.770143999999998], ['Wed Oct  2 11:11:29 2019']]"
"[[10.73856], ['Wed Oct  2 11:11:30 2019']]"
[10.780672],['Wed Oct  2 11:11:24 2019']
[10.73856],['Wed Oct  2 11:11:23 2019']

```

I would like to have `.csv` file looking like this:

```
values,dates
10.73856,Wed Oct  2 11:11:23 2019
10.780672,Wed Oct  2 11:11:24 2019
10.73856,Wed Oct  2 11:11:25 2019
10.780672,Wed Oct  2 11:11:24 2019
10.73856,Wed Oct  2 11:11:23 2019

```

Could you help me guys? Thank you in advance.