test_run.py 2.6 KB

1234567
  1. import numpy as np
  2. res = [['一尤商务服务(上海)有限公司', '202012', '31.67', '23.42', '0', '0', 0.0, '0', 23.42, '0.739501105146827', 2020, 12, 0.0, 1.9516666666666669, np.nan, np.nan, np.nan, np.nan], ['一尤商务服务(上海)有限公司', '202101', '0', '0', '0', '0', 0.0, None, 0.0, None, 2021, 1, 0.0, 0.0, 0.0, 23.42, 0.0, 1.9516666666666669], ['一尤商务服务(上海)有限公司', '202102', '0', '0', '0', '0', 0.0, None, 0.0, None, 2021, 2, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], ['一尤商务服务(上海)有限司', '202103', '31.92', '24.15', '2.25', '0', 2.25, '0.0704887218045113', 21.9, '0.68609022556391', 2021, 3, 0.75, 7.3, 0.0, 0.0, 0.0, 0.0], ['一尤商务服务(上海)有限公司', '202104', '40.3', '29.7', '5.51', '0', 5.51, '0.136724565756824', 24.19, '0.600248138957816', 2021, 4, 1.3775, 6.0475, 2.25, 21.9, 0.75, 7.3], ['一尤商务服务(上海)有限公司', '202105', '50.69', '37.29', '11.27', '0', 11.27, '0.222331820871967', 26.02,
  3. '0.513316235943973', 2021, 5, 2.254, 5.204, 5.51, 24.19, 1.3775, 6.0475], ['一尤商务服务(上海)有限公司', '202106', '60.46', '44.65', '7.89', '0', 7.89, '0.130499503804168', 36.76, '0.608005292755541', 2021, 6, 1.315, 6.126666666666666, 11.27, 26.02, 2.254, 5.204], ['一尤商务服务(上海)有限公司', '202107', '63.21', '46.32', '4.97', '0', 4.97, '0.0786267995570321', 41.35, '0.654168644201867', 2021, 7, 0.71, 5.9071428571428575, 7.89, 36.76, 1.315, 6.126666666666666], ['一尤商务服务(上海)有限公司', '202108', '66.29', '48.42', '3.92', '0.28', 4.2, '0.0633579725448786', 44.22, '0.667068939508221', 2021, 8, 0.525, 5.5275, 4.97, 41.35, 0.71, 5.9071428571428575], ['一尤商务服务(上海)有限公司', '202109', '66.98', '48.98', '5.91', '0.27', 6.18, '0.0922663481636309', 42.8, '0.638996715437444', 2021, 9, 0.6866666666666666, 4.7555555555555555, 4.2, 44.22, 0.525, 5.5275]]
  4. res_numpy = np.asarray(res)
  5. print(res_numpy)