1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| import redis
| import numpy as np
| import pandas as pd
| import datetime
|
|
| print(datetime.datetime.now().strftime('%H:%M:%S.%f'))
| r = redis.Redis(host = 'localhost' , port = 6379 ,db = 0,)
| data = pd.read_csv("E:\\Test\\1#190110 150215\\12.csv")
| dataArray = np.array(data)
|
| print(datetime.datetime.now().strftime('%H:%M:%S.%f'))
|
| for index in range(0,dataArray.shape[0],1):
| r.lpush('k12',dataArray[index])
|
| print(datetime.datetime.now().strftime('%H:%M:%S.%f'))
|
|