Skip to content

Commit 61fb295

Browse files
committed
fixed transpose to not drop NaN
1 parent fe95d4e commit 61fb295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

larray/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def _pandas_transpose_any(obj, index_levels, column_levels=None, sort=True,
476476
# eg 100x10 \ 100 to 100x100 \ 10
477477
# will be faster via 100 \ 100x10 than via 100x10x100
478478
if tostack:
479-
obj = obj.stack(tostack)
479+
obj = obj.stack(tostack, dropna=False)
480480

481481
if tounstack:
482482
obj = obj.unstack(tounstack)

0 commit comments

Comments
 (0)