Skip to content

Commit f382c82

Browse files
committed
work on some corner cases in cdata
1 parent e3883cc commit f382c82

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

data_algebra/cdata.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,9 @@ def rowrecs_to_blocks(
286286
dcol = ctemp[vk][i]
287287
if dcol in donor_cols:
288288
nvals = numpy.asarray(dtemp[dcol])
289-
if len(nvals) > 0:
290-
res.loc[want, vk] = nvals
289+
if len(nvals) < 1:
290+
nvals = [None] * numpy.sum(want)
291+
res.loc[want, vk] = nvals
291292
# see about promoting composite columns to numeric
292293
for vk in set(value_keys):
293294
converted = local_data_model.to_numeric(res[vk], errors="coerce")

0 commit comments

Comments
 (0)