|
|
|
@ -167,9 +167,11 @@ class Binary :
|
|
|
|
|
# Let's treat the case of missing values i.e nulls
|
|
|
|
|
#
|
|
|
|
|
row_count,col_count = column.size,values.size
|
|
|
|
|
if row_count * col_count > size and row_count < size:
|
|
|
|
|
N = np.divide(size,row_count).astype(int)
|
|
|
|
|
i = np.random.choice(col_count,N)
|
|
|
|
|
# if row_count * col_count > size and row_count < size:
|
|
|
|
|
if col_count > size :
|
|
|
|
|
# N = np.divide(size,row_count).astype(int)
|
|
|
|
|
# N =
|
|
|
|
|
i = np.random.choice(col_count,size)
|
|
|
|
|
values = values[-i]
|
|
|
|
|
col_count = N
|
|
|
|
|
|
|
|
|
|