# 2.1处理缺失值,连续值用均值填充 continuous_fillna_number = [] for i in train_null_ix: if(i in continuous_ix): mean_v = df_train[i].mean() continuous_fillna_number.append(mean_v) df_train[i] = df_train[i].fillna(mean_v) np.save("continuous_fillna_number.npy"
找连续数 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1033 Accepted Submission(s): 371 Problem Description 小度熊拿到了一个无序的数组,对于这个数组,小度熊想知道是否能找到一个k 的区间,里面的 k 个数字排完序后是连续的. 现在小度熊增加题目难度,他不想知道是否有这样的 k
--从10001起,借用生成的行号,批量编号表记录 ; update t1 set t1.newNo=t2.newNo from student t1 join (select id, (row_number() over(order by id) + @start) newNo from student) t2 on t1.id=t2.id
Sub Uniquedata()Dim rCell As Range'创建Dictionary对象Set d = CreateObject("Scripting.Dictionary")'遍历数据区域的单元格For Each rCell In Range("A2:I905")'判断单元格是否为空If rCell <> "" Then'如果Dictionary对象中不包含指定的关键字就添加该关键字和条目If Not d.exists(r