Repository Public
1{2 "name": "arrays",3 "description": "FILTER, SORT, SORTBY, UNIQUE, SEQUENCE, TAKE, DROP, CHOOSEROWS, CHOOSECOLS, EXPAND, HSTACK, VSTACK, TOCOL, TOROW, WRAPROWS, WRAPCOLS, MAP, REDUCE, SCAN, BYROW, BYCOL, MAKEARRAY — Python model, cross-checked with LibreOffice 26.8 where available",4 "data": {5 "A1": "Ann",6 "A2": "bob",7 "A3": "Cid",8 "A4": "ann",9 "A5": "Dee",10 "A6": "Eve",11 "A7": "bob",12 "A8": "Fay",13 "A9": "Gus",14 "A10": "Hal",15 "B1": "East",16 "B2": "West",17 "B3": "East",18 "B4": "North",19 "B5": "West",20 "B6": "East",21 "B7": "West",22 "B8": "South",23 "B9": "North",24 "B10": "East",25 "C1": 30,26 "C2": 12,27 "C3": 45,28 "C4": 30,29 "C5": 8,30 "C6": 45,31 "C7": 12,32 "C8": 60,33 "C9": 5,34 "C10": 30,35 "D1": 2.5,36 "D2": 4.0,37 "D3": 1.25,38 "D4": 3.0,39 "D5": 9.5,40 "D6": 1.25,41 "D7": 4.5,42 "D8": 0.75,43 "D9": 12.0,44 "D10": 2.0,45 "F1": 7,46 "F2": 3,47 "F3": 9,48 "F4": 3,49 "F5": 1,50 "H1": 1,51 "I1": 2,52 "J1": 3,53 "K1": 4,54 "H2": 5,55 "I2": 6,56 "J2": 7,57 "K2": 8,58 "H3": 9,59 "I3": 10,60 "J3": 11,61 "K3": 12,62 "M1": 1,63 "O1": 3,64 "M2": "x",65 "N2": "=NA()",66 "M3": 7,67 "N3": 8,68 "O3": "y",69 "Q1": 3,70 "Q2": "b",71 "Q3": true,72 "Q4": "A",73 "Q5": 1,74 "Q6": false,75 "Q7": "c",76 "Q8": 277 },78 "cases": [79 {80 "f": "=FILTER(A1:D10,C1:C10>0)",81 "py": {82 "rows": 10,83 "cols": 4,84 "items": [85 "Ann",86 "East",87 30,88 2.5,89 "bob",90 "West",91 12,92 4.0,93 "Cid",94 "East",95 45,96 1.25,97 "ann",98 "North",99 30,100 3.0,101 "Dee",102 "West",103 8,104 9.5,105 "Eve",106 "East",107 45,108 1.25,109 "bob",110 "West",111 12,112 4.5,113 "Fay",114 "South",115 60,116 0.75,117 "Gus",118 "North",119 5,120 12.0,121 "Hal",122 "East",123 30,124 2.0125 ]126 },127 "expect": {128 "rows": 10,129 "cols": 4,130 "items": [131 "Ann",132 "East",133 30,134 2.5,135 "bob",136 "West",137 12,138 4,139 "Cid",140 "East",141 45,142 1.25,143 "ann",144 "North",145 30,146 3,147 "Dee",148 "West",149 8,150 9.5,151 "Eve",152 "East",153 45,154 1.25,155 "bob",156 "West",157 12,158 4.5,159 "Fay",160 "South",161 60,162 0.75,163 "Gus",164 "North",165 5,166 12,167 "Hal",168 "East",169 30,170 2171 ]172 },173 "source": "libreoffice+python"174 },175 {176 "f": "=FILTER(A1:A10,C1:C10=0,\"none\")",177 "py": "none",178 "expect": "none",179 "source": "libreoffice+python"180 },181 {182 "f": "=FILTER(A1:D10,C1:C10>10)",183 "py": {184 "rows": 8,185 "cols": 4,186 "items": [187 "Ann",188 "East",189 30,190 2.5,191 "bob",192 "West",193 12,194 4.0,195 "Cid",196 "East",197 45,198 1.25,199 "ann",200 "North",201 30,202 3.0,203 "Eve",204 "East",205 45,206 1.25,207 "bob",208 "West",209 12,210 4.5,211 "Fay",212 "South",213 60,214 0.75,215 "Hal",216 "East",217 30,218 2.0219 ]220 },221 "expect": {222 "rows": 8,223 "cols": 4,224 "items": [225 "Ann",226 "East",227 30,228 2.5,229 "bob",230 "West",231 12,232 4,233 "Cid",234 "East",235 45,236 1.25,237 "ann",238 "North",239 30,240 3,241 "Eve",242 "East",243 45,244 1.25,245 "bob",246 "West",247 12,248 4.5,249 "Fay",250 "South",251 60,252 0.75,253 "Hal",254 "East",255 30,256 2257 ]258 },259 "source": "libreoffice+python"260 },261 {262 "f": "=FILTER(A1:A10,C1:C10=10,\"none\")",263 "py": "none",264 "expect": "none",265 "source": "libreoffice+python"266 },267 {268 "f": "=FILTER(A1:D10,C1:C10>12)",269 "py": {270 "rows": 6,271 "cols": 4,272 "items": [273 "Ann",274 "East",275 30,276 2.5,277 "Cid",278 "East",279 45,280 1.25,281 "ann",282 "North",283 30,284 3.0,285 "Eve",286 "East",287 45,288 1.25,289 "Fay",290 "South",291 60,292 0.75,293 "Hal",294 "East",295 30,296 2.0297 ]298 },299 "expect": {300 "rows": 6,301 "cols": 4,302 "items": [303 "Ann",304 "East",305 30,306 2.5,307 "Cid",308 "East",309 45,310 1.25,311 "ann",312 "North",313 30,314 3,315 "Eve",316 "East",317 45,318 1.25,319 "Fay",320 "South",321 60,322 0.75,323 "Hal",324 "East",325 30,326 2327 ]328 },329 "source": "libreoffice+python"330 },331 {332 "f": "=FILTER(A1:A10,C1:C10=12,\"none\")",333 "py": {334 "rows": 2,335 "cols": 1,336 "items": [337 "bob",338 "bob"339 ]340 },341 "expect": {342 "rows": 2,343 "cols": 1,344 "items": [345 "bob",346 "bob"347 ]348 },349 "source": "libreoffice+python"350 },351 {352 "f": "=FILTER(A1:D10,C1:C10>30)",353 "py": {354 "rows": 3,355 "cols": 4,356 "items": [357 "Cid",358 "East",359 45,360 1.25,361 "Eve",362 "East",363 45,364 1.25,365 "Fay",366 "South",367 60,368 0.75369 ]370 },371 "expect": {372 "rows": 3,373 "cols": 4,374 "items": [375 "Cid",376 "East",377 45,378 1.25,379 "Eve",380 "East",381 45,382 1.25,383 "Fay",384 "South",385 60,386 0.75387 ]388 },389 "source": "libreoffice+python"390 },391 {392 "f": "=FILTER(A1:A10,C1:C10=30,\"none\")",393 "py": {394 "rows": 3,395 "cols": 1,396 "items": [397 "Ann",398 "ann",399 "Hal"400 ]401 },402 "expect": {403 "rows": 3,404 "cols": 1,405 "items": [406 "Ann",407 "ann",408 "Hal"409 ]410 },411 "source": "libreoffice+python"412 },413 {414 "f": "=FILTER(A1:D10,C1:C10>44)",415 "py": {416 "rows": 3,417 "cols": 4,418 "items": [419 "Cid",420 "East",421 45,422 1.25,423 "Eve",424 "East",425 45,426 1.25,427 "Fay",428 "South",429 60,430 0.75431 ]432 },433 "expect": {434 "rows": 3,435 "cols": 4,436 "items": [437 "Cid",438 "East",439 45,440 1.25,441 "Eve",442 "East",443 45,444 1.25,445 "Fay",446 "South",447 60,448 0.75449 ]450 },451 "source": "libreoffice+python"452 },453 {454 "f": "=FILTER(A1:A10,C1:C10=44,\"none\")",455 "py": "none",456 "expect": "none",457 "source": "libreoffice+python"458 },459 {460 "f": "=FILTER(C1:D10,(C1:C10>10)*(D1:D10<3))",461 "py": {462 "rows": 5,463 "cols": 2,464 "items": [465 30,466 2.5,467 45,468 1.25,469 45,470 1.25,471 60,472 0.75,473 30,474 2.0475 ]476 },477 "expect": {478 "rows": 5,479 "cols": 2,480 "items": [481 30,482 2.5,483 45,484 1.25,485 45,486 1.25,487 60,488 0.75,489 30,490 2491 ]492 },493 "source": "libreoffice+python"494 },495 {496 "f": "=FILTER(A1:B10,(C1:C10>40)+(D1:D10>9))",497 "py": {498 "rows": 5,499 "cols": 2,500 "items": [501 "Cid",502 "East",503 "Dee",504 "West",505 "Eve",506 "East",507 "Fay",508 "South",509 "Gus",510 "North"511 ]512 },513 "expect": {514 "rows": 5,515 "cols": 2,516 "items": [517 "Cid",518 "East",519 "Dee",520 "West",521 "Eve",522 "East",523 "Fay",524 "South",525 "Gus",526 "North"527 ]528 },529 "source": "libreoffice+python"530 },531 {532 "f": "=FILTER(H1:K3,H1:K1>2)",533 "py": {534 "rows": 3,535 "cols": 2,536 "items": [537 3,538 4,539 7,540 8,541 11,542 12543 ]544 },545 "expect": {546 "rows": 3,547 "cols": 2,548 "items": [549 3,550 4,551 7,552 8,553 11,554 12555 ]556 },557 "source": "libreoffice+python"558 },559 {560 "f": "=FILTER(H1:K3,{1,0,0,1})",561 "py": {562 "rows": 3,563 "cols": 2,564 "items": [565 1,566 4,567 5,568 8,569 9,570 12571 ]572 },573 "expect": {574 "rows": 3,575 "cols": 2,576 "items": [577 1,578 4,579 5,580 8,581 9,582 12583 ]584 },585 "source": "libreoffice+python"586 },587 {588 "f": "=FILTER(H1:K3,{TRUE;FALSE;TRUE})",589 "py": {590 "rows": 2,591 "cols": 4,592 "items": [593 1,594 2,595 3,596 4,597 9,598 10,599 11,600 12601 ]602 },603 "expect": {604 "rows": 2,605 "cols": 4,606 "items": [607 1,608 2,609 3,610 4,611 9,612 10,613 11,614 12615 ]616 },617 "source": "libreoffice+python"618 },619 {620 "f": "=FILTER(H1:K3,I1:I3>5)",621 "py": {622 "rows": 2,623 "cols": 4,624 "items": [625 5,626 6,627 7,628 8,629 9,630 10,631 11,632 12633 ]634 },635 "expect": {636 "rows": 2,637 "cols": 4,638 "items": [639 5,640 6,641 7,642 8,643 9,644 10,645 11,646 12647 ]648 },649 "source": "libreoffice+python"650 },651 {652 "f": "=FILTER(A1:D10,C1:C10>100)",653 "py": "#VALUE!",654 "expect": "#VALUE!",655 "source": "libreoffice+python"656 },657 {658 "f": "=FILTER(A1:D10,C1:C10>100,\"\")",659 "py": "",660 "expect": null,661 "source": "libreoffice+python"662 },663 {664 "f": "=FILTER(A1:D10,C1:C5>1)",665 "py": "#VALUE!",666 "expect": "#VALUE!",667 "source": "libreoffice+python"668 },669 {670 "f": "=FILTER(F1:F5,F1:F5<>3)",671 "py": {672 "rows": 3,673 "cols": 1,674 "items": [675 7,676 9,677 1678 ]679 },680 "expect": {681 "rows": 3,682 "cols": 1,683 "items": [684 7,685 9,686 1687 ]688 },689 "source": "libreoffice+python"690 },691 {692 "f": "=FILTER({1,2,3;4,5,6},{TRUE;FALSE})",693 "py": {694 "rows": 1,695 "cols": 3,696 "items": [697 1,698 2,699 3700 ]701 },702 "expect": {703 "rows": 1,704 "cols": 3,705 "items": [706 1,707 2,708 3709 ]710 },711 "source": "libreoffice+python"712 },713 {714 "f": "=FILTER(B1:B10,B1:B10=\"east\")",715 "py": {716 "rows": 4,717 "cols": 1,718 "items": [719 "East",720 "East",721 "East",722 "East"723 ]724 },725 "expect": {726 "rows": 4,727 "cols": 1,728 "items": [729 "East",730 "East",731 "East",732 "East"733 ]734 },735 "source": "libreoffice+python"736 },737 {738 "f": "=SORT(A1:D10,1,1)",739 "py": {740 "rows": 10,741 "cols": 4,742 "items": [743 "Ann",744 "East",745 30,746 2.5,747 "ann",748 "North",749 30,750 3.0,751 "bob",752 "West",753 12,754 4.0,755 "bob",756 "West",757 12,758 4.5,759 "Cid",760 "East",761 45,762 1.25,763 "Dee",764 "West",765 8,766 9.5,767 "Eve",768 "East",769 45,770 1.25,771 "Fay",772 "South",773 60,774 0.75,775 "Gus",776 "North",777 5,778 12.0,779 "Hal",780 "East",781 30,782 2.0783 ]784 },785 "expect": {786 "rows": 10,787 "cols": 4,788 "items": [789 "Ann",790 "East",791 30,792 2.5,793 "ann",794 "North",795 30,796 3,797 "bob",798 "West",799 12,800 4,801 "bob",802 "West",803 12,804 4.5,805 "Cid",806 "East",807 45,808 1.25,809 "Dee",810 "West",811 8,812 9.5,813 "Eve",814 "East",815 45,816 1.25,817 "Fay",818 "South",819 60,820 0.75,821 "Gus",822 "North",823 5,824 12,825 "Hal",826 "East",827 30,828 2829 ]830 },831 "source": "libreoffice+python"832 },833 {834 "f": "=SORT(A1:D10,1,-1)",835 "py": {836 "rows": 10,837 "cols": 4,838 "items": [839 "Hal",840 "East",841 30,842 2.0,843 "Gus",844 "North",845 5,846 12.0,847 "Fay",848 "South",849 60,850 0.75,851 "Eve",852 "East",853 45,854 1.25,855 "Dee",856 "West",857 8,858 9.5,859 "Cid",860 "East",861 45,862 1.25,863 "bob",864 "West",865 12,866 4.0,867 "bob",868 "West",869 12,870 4.5,871 "Ann",872 "East",873 30,874 2.5,875 "ann",876 "North",877 30,878 3.0879 ]880 },881 "expect": {882 "rows": 10,883 "cols": 4,884 "items": [885 "Hal",886 "East",887 30,888 2,889 "Gus",890 "North",891 5,892 12,893 "Fay",894 "South",895 60,896 0.75,897 "Eve",898 "East",899 45,900 1.25,901 "Dee",902 "West",903 8,904 9.5,905 "Cid",906 "East",907 45,908 1.25,909 "bob",910 "West",911 12,912 4,913 "bob",914 "West",915 12,916 4.5,917 "Ann",918 "East",919 30,920 2.5,921 "ann",922 "North",923 30,924 3925 ]926 },927 "source": "libreoffice+python"928 },929 {930 "f": "=SORT(A1:D10,2,1)",931 "py": {932 "rows": 10,933 "cols": 4,934 "items": [935 "Ann",936 "East",937 30,938 2.5,939 "Cid",940 "East",941 45,942 1.25,943 "Eve",944 "East",945 45,946 1.25,947 "Hal",948 "East",949 30,950 2.0,951 "ann",952 "North",953 30,954 3.0,955 "Gus",956 "North",957 5,958 12.0,959 "Fay",960 "South",961 60,962 0.75,963 "bob",964 "West",965 12,966 4.0,967 "Dee",968 "West",969 8,970 9.5,971 "bob",972 "West",973 12,974 4.5975 ]976 },977 "expect": {978 "rows": 10,979 "cols": 4,980 "items": [981 "Ann",982 "East",983 30,984 2.5,985 "Cid",986 "East",987 45,988 1.25,989 "Eve",990 "East",991 45,992 1.25,993 "Hal",994 "East",995 30,996 2,997 "ann",998 "North",999 30,1000 3,1001 "Gus",1002 "North",1003 5,1004 12,1005 "Fay",1006 "South",1007 60,1008 0.75,1009 "bob",1010 "West",1011 12,1012 4,1013 "Dee",1014 "West",1015 8,1016 9.5,1017 "bob",1018 "West",1019 12,1020 4.51021 ]1022 },1023 "source": "libreoffice+python"1024 },1025 {1026 "f": "=SORT(A1:D10,2,-1)",1027 "py": {1028 "rows": 10,1029 "cols": 4,1030 "items": [1031 "bob",1032 "West",1033 12,1034 4.0,1035 "Dee",1036 "West",1037 8,1038 9.5,1039 "bob",1040 "West",1041 12,1042 4.5,1043 "Fay",1044 "South",1045 60,1046 0.75,1047 "ann",1048 "North",1049 30,1050 3.0,1051 "Gus",1052 "North",1053 5,1054 12.0,1055 "Ann",1056 "East",1057 30,1058 2.5,1059 "Cid",1060 "East",1061 45,1062 1.25,1063 "Eve",1064 "East",1065 45,1066 1.25,1067 "Hal",1068 "East",1069 30,1070 2.01071 ]1072 },1073 "expect": {1074 "rows": 10,1075 "cols": 4,1076 "items": [1077 "bob",1078 "West",1079 12,1080 4,1081 "Dee",1082 "West",1083 8,1084 9.5,1085 "bob",1086 "West",1087 12,1088 4.5,1089 "Fay",1090 "South",1091 60,1092 0.75,1093 "ann",1094 "North",1095 30,1096 3,1097 "Gus",1098 "North",1099 5,1100 12,1101 "Ann",1102 "East",1103 30,1104 2.5,1105 "Cid",1106 "East",1107 45,1108 1.25,1109 "Eve",1110 "East",1111 45,1112 1.25,1113 "Hal",1114 "East",1115 30,1116 21117 ]1118 },1119 "source": "libreoffice+python"1120 },1121 {1122 "f": "=SORT(A1:D10,3,1)",1123 "py": {1124 "rows": 10,1125 "cols": 4,1126 "items": [1127 "Gus",1128 "North",1129 5,1130 12.0,1131 "Dee",1132 "West",1133 8,1134 9.5,1135 "bob",1136 "West",1137 12,1138 4.0,1139 "bob",1140 "West",1141 12,1142 4.5,1143 "Ann",1144 "East",1145 30,1146 2.5,1147 "ann",1148 "North",1149 30,1150 3.0,1151 "Hal",1152 "East",1153 30,1154 2.0,1155 "Cid",1156 "East",1157 45,1158 1.25,1159 "Eve",1160 "East",1161 45,1162 1.25,1163 "Fay",1164 "South",1165 60,1166 0.751167 ]1168 },1169 "expect": {1170 "rows": 10,1171 "cols": 4,1172 "items": [1173 "Gus",1174 "North",1175 5,1176 12,1177 "Dee",1178 "West",1179 8,1180 9.5,1181 "bob",1182 "West",1183 12,1184 4,1185 "bob",1186 "West",1187 12,1188 4.5,1189 "Ann",1190 "East",1191 30,1192 2.5,1193 "ann",1194 "North",1195 30,1196 3,1197 "Hal",1198 "East",1199 30,1200 2,1201 "Cid",1202 "East",1203 45,1204 1.25,1205 "Eve",1206 "East",1207 45,1208 1.25,1209 "Fay",1210 "South",1211 60,1212 0.751213 ]1214 },1215 "source": "libreoffice+python"1216 },1217 {1218 "f": "=SORT(A1:D10,3,-1)",1219 "py": {1220 "rows": 10,1221 "cols": 4,1222 "items": [1223 "Fay",1224 "South",1225 60,1226 0.75,1227 "Cid",1228 "East",1229 45,1230 1.25,1231 "Eve",1232 "East",1233 45,1234 1.25,1235 "Ann",1236 "East",1237 30,1238 2.5,1239 "ann",1240 "North",1241 30,1242 3.0,1243 "Hal",1244 "East",1245 30,1246 2.0,1247 "bob",1248 "West",1249 12,1250 4.0,1251 "bob",1252 "West",1253 12,1254 4.5,1255 "Dee",1256 "West",1257 8,1258 9.5,1259 "Gus",1260 "North",1261 5,1262 12.01263 ]1264 },1265 "expect": {1266 "rows": 10,1267 "cols": 4,1268 "items": [1269 "Fay",1270 "South",1271 60,1272 0.75,1273 "Cid",1274 "East",1275 45,1276 1.25,1277 "Eve",1278 "East",1279 45,1280 1.25,1281 "Ann",1282 "East",1283 30,1284 2.5,1285 "ann",1286 "North",1287 30,1288 3,1289 "Hal",1290 "East",1291 30,1292 2,1293 "bob",1294 "West",1295 12,1296 4,1297 "bob",1298 "West",1299 12,1300 4.5,1301 "Dee",1302 "West",1303 8,1304 9.5,1305 "Gus",1306 "North",1307 5,1308 121309 ]1310 },1311 "source": "libreoffice+python"1312 },1313 {1314 "f": "=SORT(A1:D10,4,1)",1315 "py": {1316 "rows": 10,1317 "cols": 4,1318 "items": [1319 "Fay",1320 "South",1321 60,1322 0.75,1323 "Cid",1324 "East",1325 45,1326 1.25,1327 "Eve",1328 "East",1329 45,1330 1.25,1331 "Hal",1332 "East",1333 30,1334 2.0,1335 "Ann",1336 "East",1337 30,1338 2.5,1339 "ann",1340 "North",1341 30,1342 3.0,1343 "bob",1344 "West",1345 12,1346 4.0,1347 "bob",1348 "West",1349 12,1350 4.5,1351 "Dee",1352 "West",1353 8,1354 9.5,1355 "Gus",1356 "North",1357 5,1358 12.01359 ]1360 },1361 "expect": {1362 "rows": 10,1363 "cols": 4,1364 "items": [1365 "Fay",1366 "South",1367 60,1368 0.75,1369 "Cid",1370 "East",1371 45,1372 1.25,1373 "Eve",1374 "East",1375 45,1376 1.25,1377 "Hal",1378 "East",1379 30,1380 2,1381 "Ann",1382 "East",1383 30,1384 2.5,1385 "ann",1386 "North",1387 30,1388 3,1389 "bob",1390 "West",1391 12,1392 4,1393 "bob",1394 "West",1395 12,1396 4.5,1397 "Dee",1398 "West",1399 8,1400 9.5,1401 "Gus",1402 "North",1403 5,1404 121405 ]1406 },1407 "source": "libreoffice+python"1408 },1409 {1410 "f": "=SORT(A1:D10,4,-1)",1411 "py": {1412 "rows": 10,1413 "cols": 4,1414 "items": [1415 "Gus",1416 "North",1417 5,1418 12.0,1419 "Dee",1420 "West",1421 8,1422 9.5,1423 "bob",1424 "West",1425 12,1426 4.5,1427 "bob",1428 "West",1429 12,1430 4.0,1431 "ann",1432 "North",1433 30,1434 3.0,1435 "Ann",1436 "East",1437 30,1438 2.5,1439 "Hal",1440 "East",1441 30,1442 2.0,1443 "Cid",1444 "East",1445 45,1446 1.25,1447 "Eve",1448 "East",1449 45,1450 1.25,1451 "Fay",1452 "South",1453 60,1454 0.751455 ]1456 },1457 "expect": {1458 "rows": 10,1459 "cols": 4,1460 "items": [1461 "Gus",1462 "North",1463 5,1464 12,1465 "Dee",1466 "West",1467 8,1468 9.5,1469 "bob",1470 "West",1471 12,1472 4.5,1473 "bob",1474 "West",1475 12,1476 4,1477 "ann",1478 "North",1479 30,1480 3,1481 "Ann",1482 "East",1483 30,1484 2.5,1485 "Hal",1486 "East",1487 30,1488 2,1489 "Cid",1490 "East",1491 45,1492 1.25,1493 "Eve",1494 "East",1495 45,1496 1.25,1497 "Fay",1498 "South",1499 60,1500 0.751501 ]1502 },1503 "source": "libreoffice+python"1504 },1505 {1506 "f": "=SORT(F1:F5)",1507 "py": {1508 "rows": 5,1509 "cols": 1,1510 "items": [1511 1,1512 3,1513 3,1514 7,1515 91516 ]1517 },1518 "expect": {1519 "rows": 5,1520 "cols": 1,1521 "items": [1522 1,1523 3,1524 3,1525 7,1526 91527 ]1528 },1529 "source": "libreoffice+python"1530 },1531 {1532 "f": "=SORT(F1:F5,1,-1)",1533 "py": {1534 "rows": 5,1535 "cols": 1,1536 "items": [1537 9,1538 7,1539 3,1540 3,1541 11542 ]1543 },1544 "expect": {1545 "rows": 5,1546 "cols": 1,1547 "items": [1548 9,1549 7,1550 3,1551 3,1552 11553 ]1554 },1555 "source": "libreoffice+python"1556 },1557 {1558 "f": "=SORT(F1:F5,,-1)",1559 "py": {1560 "rows": 5,1561 "cols": 1,1562 "items": [1563 9,1564 7,1565 3,1566 3,1567 11568 ]1569 },1570 "expect": {1571 "rows": 5,1572 "cols": 1,1573 "items": [1574 9,1575 7,1576 3,1577 3,1578 11579 ]1580 },1581 "source": "libreoffice+python"1582 },1583 {1584 "f": "=SORT(C1:C10)",1585 "py": {1586 "rows": 10,1587 "cols": 1,1588 "items": [1589 5,1590 8,1591 12,1592 12,1593 30,1594 30,1595 30,1596 45,1597 45,1598 601599 ]1600 },1601 "expect": {1602 "rows": 10,1603 "cols": 1,1604 "items": [1605 5,1606 8,1607 12,1608 12,1609 30,1610 30,1611 30,1612 45,1613 45,1614 601615 ]1616 },1617 "source": "libreoffice+python"1618 },1619 {1620 "f": "=SORT(B1:B10,1,-1)",1621 "py": {1622 "rows": 10,1623 "cols": 1,1624 "items": [1625 "West",1626 "West",1627 "West",1628 "South",1629 "North",1630 "North",1631 "East",1632 "East",1633 "East",1634 "East"1635 ]1636 },1637 "expect": {1638 "rows": 10,1639 "cols": 1,1640 "items": [1641 "West",1642 "West",1643 "West",1644 "South",1645 "North",1646 "North",1647 "East",1648 "East",1649 "East",1650 "East"1651 ]1652 },1653 "source": "libreoffice+python"1654 },1655 {1656 "f": "=SORT(A1:D10,{2,3},{1,-1})",1657 "py": {1658 "rows": 10,1659 "cols": 4,1660 "items": [1661 "Cid",1662 "East",1663 45,1664 1.25,1665 "Eve",1666 "East",1667 45,1668 1.25,1669 "Ann",1670 "East",1671 30,1672 2.5,1673 "Hal",1674 "East",1675 30,1676 2.0,1677 "ann",1678 "North",1679 30,1680 3.0,1681 "Gus",1682 "North",1683 5,1684 12.0,1685 "Fay",1686 "South",1687 60,1688 0.75,1689 "bob",1690 "West",1691 12,1692 4.0,1693 "bob",1694 "West",1695 12,1696 4.5,1697 "Dee",1698 "West",1699 8,1700 9.51701 ]1702 },1703 "expect": {1704 "rows": 10,1705 "cols": 4,1706 "items": [1707 "Cid",1708 "East",1709 45,1710 1.25,1711 "Eve",1712 "East",1713 45,1714 1.25,1715 "Ann",1716 "East",1717 30,1718 2.5,1719 "Hal",1720 "East",1721 30,1722 2,1723 "ann",1724 "North",1725 30,1726 3,1727 "Gus",1728 "North",1729 5,1730 12,1731 "Fay",1732 "South",1733 60,1734 0.75,1735 "bob",1736 "West",1737 12,1738 4,1739 "bob",1740 "West",1741 12,1742 4.5,1743 "Dee",1744 "West",1745 8,1746 9.51747 ]1748 },1749 "source": "libreoffice+python"1750 },1751 {1752 "f": "=SORT(A1:D10,{3,4})",1753 "py": {1754 "rows": 10,1755 "cols": 4,1756 "items": [1757 "Gus",1758 "North",1759 5,1760 12.0,1761 "Dee",1762 "West",1763 8,1764 9.5,1765 "bob",1766 "West",1767 12,1768 4.0,1769 "bob",1770 "West",1771 12,1772 4.5,1773 "Hal",1774 "East",1775 30,1776 2.0,1777 "Ann",1778 "East",1779 30,1780 2.5,1781 "ann",1782 "North",1783 30,1784 3.0,1785 "Cid",1786 "East",1787 45,1788 1.25,1789 "Eve",1790 "East",1791 45,1792 1.25,1793 "Fay",1794 "South",1795 60,1796 0.751797 ]1798 },1799 "expect": {1800 "rows": 10,1801 "cols": 4,1802 "items": [1803 "Gus",1804 "North",1805 5,1806 12,1807 "Dee",1808 "West",1809 8,1810 9.5,1811 "bob",1812 "West",1813 12,1814 4,1815 "bob",1816 "West",1817 12,1818 4.5,1819 "Hal",1820 "East",1821 30,1822 2,1823 "Ann",1824 "East",1825 30,1826 2.5,1827 "ann",1828 "North",1829 30,1830 3,1831 "Cid",1832 "East",1833 45,1834 1.25,1835 "Eve",1836 "East",1837 45,1838 1.25,1839 "Fay",1840 "South",1841 60,1842 0.751843 ]1844 },1845 "source": "libreoffice+python"1846 },1847 {1848 "f": "=SORT(A1:D10,{3,1},{-1,1})",1849 "py": {1850 "rows": 10,1851 "cols": 4,1852 "items": [1853 "Fay",1854 "South",1855 60,1856 0.75,1857 "Cid",1858 "East",1859 45,1860 1.25,1861 "Eve",1862 "East",1863 45,1864 1.25,1865 "Ann",1866 "East",1867 30,1868 2.5,1869 "ann",1870 "North",1871 30,1872 3.0,1873 "Hal",1874 "East",1875 30,1876 2.0,1877 "bob",1878 "West",1879 12,1880 4.0,1881 "bob",1882 "West",1883 12,1884 4.5,1885 "Dee",1886 "West",1887 8,1888 9.5,1889 "Gus",1890 "North",1891 5,1892 12.01893 ]1894 },1895 "expect": {1896 "rows": 10,1897 "cols": 4,1898 "items": [1899 "Fay",1900 "South",1901 60,1902 0.75,1903 "Cid",1904 "East",1905 45,1906 1.25,1907 "Eve",1908 "East",1909 45,1910 1.25,1911 "Ann",1912 "East",1913 30,1914 2.5,1915 "ann",1916 "North",1917 30,1918 3,1919 "Hal",1920 "East",1921 30,1922 2,1923 "bob",1924 "West",1925 12,1926 4,1927 "bob",1928 "West",1929 12,1930 4.5,1931 "Dee",1932 "West",1933 8,1934 9.5,1935 "Gus",1936 "North",1937 5,1938 121939 ]1940 },1941 "source": "libreoffice+python"1942 },1943 {1944 "f": "=SORT(B1:D10,{1,2,3},{-1,-1,1})",1945 "py": {1946 "rows": 10,1947 "cols": 3,1948 "items": [1949 "West",1950 12,1951 4.0,1952 "West",1953 12,1954 4.5,1955 "West",1956 8,1957 9.5,1958 "South",1959 60,1960 0.75,1961 "North",1962 30,1963 3.0,1964 "North",1965 5,1966 12.0,1967 "East",1968 45,1969 1.25,1970 "East",1971 45,1972 1.25,1973 "East",1974 30,1975 2.0,1976 "East",1977 30,1978 2.51979 ]1980 },1981 "expect": {1982 "rows": 10,1983 "cols": 3,1984 "items": [1985 "West",1986 12,1987 4,1988 "West",1989 12,1990 4.5,1991 "West",1992 8,1993 9.5,1994 "South",1995 60,1996 0.75,1997 "North",1998 30,1999 3,2000 "North",2001 5,2002 12,2003 "East",2004 45,2005 1.25,2006 "East",2007 45,2008 1.25,2009 "East",2010 30,2011 2,2012 "East",2013 30,2014 2.52015 ]2016 },2017 "source": "libreoffice+python"2018 },2019 {2020 "f": "=SORT(H1:K3,2,-1,TRUE)",2021 "py": {2022 "rows": 3,2023 "cols": 4,2024 "items": [2025 4,2026 3,2027 2,2028 1,2029 8,2030 7,2031 6,2032 5,2033 12,2034 11,2035 10,2036 92037 ]2038 },2039 "expect": {2040 "rows": 3,2041 "cols": 4,2042 "items": [2043 4,2044 3,2045 2,2046 1,2047 8,2048 7,2049 6,2050 5,2051 12,2052 11,2053 10,2054 92055 ]2056 },2057 "source": "libreoffice+python"2058 },2059 {2060 "f": "=SORT({3,1,2;\"c\",\"a\",\"b\"},1,1,TRUE)",2061 "py": {2062 "rows": 2,2063 "cols": 3,2064 "items": [2065 1,2066 2,2067 3,2068 "a",2069 "b",2070 "c"2071 ]2072 },2073 "expect": {2074 "rows": 2,2075 "cols": 3,2076 "items": [2077 1,2078 2,2079 3,2080 "a",2081 "b",2082 "c"2083 ]2084 },2085 "source": "libreoffice+python"2086 },2087 {2088 "f": "=SORT({3,1,2;\"c\",\"a\",\"b\"},2,-1,TRUE)",2089 "py": {2090 "rows": 2,2091 "cols": 3,2092 "items": [2093 3,2094 2,2095 1,2096 "c",2097 "b",2098 "a"2099 ]2100 },2101 "expect": {2102 "rows": 2,2103 "cols": 3,2104 "items": [2105 3,2106 2,2107 1,2108 "c",2109 "b",2110 "a"2111 ]2112 },2113 "source": "libreoffice+python"2114 },2115 {2116 "f": "=SORT(A1:D10,5)",2117 "py": "#VALUE!",2118 "expect": "#VALUE!",2119 "source": "libreoffice+python"2120 },2121 {2122 "f": "=SORT(A1:D10,0)",2123 "py": "#VALUE!",2124 "expect": "#VALUE!",2125 "source": "libreoffice+python"2126 },2127 {2128 "f": "=SORT(A1:D10,1,2)",2129 "py": "#VALUE!",2130 "expect": "#VALUE!",2131 "source": "libreoffice+python"2132 },2133 {2134 "f": "=SORT(5)",2135 "py": 5,2136 "source": "python",2137 "expect": 52138 },2139 {2140 "f": "=SORT(Q1:Q8)",2141 "py": {2142 "rows": 8,2143 "cols": 1,2144 "items": [2145 1,2146 2,2147 3,2148 "A",2149 "b",2150 "c",2151 false,2152 true2153 ]2154 },2155 "source": "python",2156 "expect": {2157 "rows": 8,2158 "cols": 1,2159 "items": [2160 1,2161 2,2162 3,2163 "A",2164 "b",2165 "c",2166 false,2167 true2168 ]2169 }2170 },2171 {2172 "f": "=SORT(Q1:Q8,1,-1)",2173 "py": {2174 "rows": 8,2175 "cols": 1,2176 "items": [2177 true,2178 false,2179 "c",2180 "b",2181 "A",2182 3,2183 2,2184 12185 ]2186 },2187 "source": "python",2188 "expect": {2189 "rows": 8,2190 "cols": 1,2191 "items": [2192 true,2193 false,2194 "c",2195 "b",2196 "A",2197 3,2198 2,2199 12200 ]2201 }2202 },2203 {2204 "f": "=SORT(M1:O3,2)",2205 "py": {2206 "rows": 3,2207 "cols": 3,2208 "items": [2209 7,2210 8,2211 "y",2212 "x",2213 "#N/A",2214 null,2215 1,2216 null,2217 32218 ]2219 },2220 "source": "python",2221 "expect": {2222 "rows": 3,2223 "cols": 3,2224 "items": [2225 7,2226 8,2227 "y",2228 "x",2229 "#N/A",2230 null,2231 1,2232 null,2233 32234 ]2235 }2236 },2237 {2238 "f": "=SORT(M1:O3,3,-1)",2239 "py": {2240 "rows": 3,2241 "cols": 3,2242 "items": [2243 7,2244 8,2245 "y",2246 1,2247 null,2248 3,2249 "x",2250 "#N/A",2251 null2252 ]2253 },2254 "source": "python",2255 "expect": {2256 "rows": 3,2257 "cols": 3,2258 "items": [2259 7,2260 8,2261 "y",2262 1,2263 null,2264 3,2265 "x",2266 "#N/A",2267 null2268 ]2269 }2270 },2271 {2272 "f": "=SORTBY(A1:A10,C1:C10)",2273 "py": {2274 "rows": 10,2275 "cols": 1,2276 "items": [2277 "Gus",2278 "Dee",2279 "bob",2280 "bob",2281 "Ann",2282 "ann",2283 "Hal",2284 "Cid",2285 "Eve",2286 "Fay"2287 ]2288 },2289 "expect": {2290 "rows": 10,2291 "cols": 1,2292 "items": [2293 "Gus",2294 "Dee",2295 "bob",2296 "bob",2297 "Ann",2298 "ann",2299 "Hal",2300 "Cid",2301 "Eve",2302 "Fay"2303 ]2304 },2305 "source": "libreoffice+python"2306 },2307 {2308 "f": "=SORTBY(A1:A10,C1:C10,-1)",2309 "py": {2310 "rows": 10,2311 "cols": 1,2312 "items": [2313 "Fay",2314 "Cid",2315 "Eve",2316 "Ann",2317 "ann",2318 "Hal",2319 "bob",2320 "bob",2321 "Dee",2322 "Gus"2323 ]2324 },2325 "expect": {2326 "rows": 10,2327 "cols": 1,2328 "items": [2329 "Fay",2330 "Cid",2331 "Eve",2332 "Ann",2333 "ann",2334 "Hal",2335 "bob",2336 "bob",2337 "Dee",2338 "Gus"2339 ]2340 },2341 "source": "libreoffice+python"2342 },2343 {2344 "f": "=SORTBY(A1:D10,B1:B10,1,C1:C10,-1)",2345 "py": {2346 "rows": 10,2347 "cols": 4,2348 "items": [2349 "Cid",2350 "East",2351 45,2352 1.25,2353 "Eve",2354 "East",2355 45,2356 1.25,2357 "Ann",2358 "East",2359 30,2360 2.5,2361 "Hal",2362 "East",2363 30,2364 2.0,2365 "ann",2366 "North",2367 30,2368 3.0,2369 "Gus",2370 "North",2371 5,2372 12.0,2373 "Fay",2374 "South",2375 60,2376 0.75,2377 "bob",2378 "West",2379 12,2380 4.0,2381 "bob",2382 "West",2383 12,2384 4.5,2385 "Dee",2386 "West",2387 8,2388 9.52389 ]2390 },2391 "expect": {2392 "rows": 10,2393 "cols": 4,2394 "items": [2395 "Cid",2396 "East",2397 45,2398 1.25,2399 "Eve",2400 "East",2401 45,2402 1.25,2403 "Ann",2404 "East",2405 30,2406 2.5,2407 "Hal",2408 "East",2409 30,2410 2,2411 "ann",2412 "North",2413 30,2414 3,2415 "Gus",2416 "North",2417 5,2418 12,2419 "Fay",2420 "South",2421 60,2422 0.75,2423 "bob",2424 "West",2425 12,2426 4,2427 "bob",2428 "West",2429 12,2430 4.5,2431 "Dee",2432 "West",2433 8,2434 9.52435 ]2436 },2437 "source": "libreoffice+python"2438 },2439 {2440 "f": "=SORTBY(A1:D10,C1:C10,-1,D1:D10,1)",2441 "py": {2442 "rows": 10,2443 "cols": 4,2444 "items": [2445 "Fay",2446 "South",2447 60,2448 0.75,2449 "Cid",2450 "East",2451 45,2452 1.25,2453 "Eve",2454 "East",2455 45,2456 1.25,2457 "Hal",2458 "East",2459 30,2460 2.0,2461 "Ann",2462 "East",2463 30,2464 2.5,2465 "ann",2466 "North",2467 30,2468 3.0,2469 "bob",2470 "West",2471 12,2472 4.0,2473 "bob",2474 "West",2475 12,2476 4.5,2477 "Dee",2478 "West",2479 8,2480 9.5,2481 "Gus",2482 "North",2483 5,2484 12.02485 ]2486 },2487 "expect": {2488 "rows": 10,2489 "cols": 4,2490 "items": [2491 "Fay",2492 "South",2493 60,2494 0.75,2495 "Cid",2496 "East",2497 45,2498 1.25,2499 "Eve",2500 "East",2501 45,2502 1.25,2503 "Hal",2504 "East",2505 30,2506 2,2507 "Ann",2508 "East",2509 30,2510 2.5,2511 "ann",2512 "North",2513 30,2514 3,2515 "bob",2516 "West",2517 12,2518 4,2519 "bob",2520 "West",2521 12,2522 4.5,2523 "Dee",2524 "West",2525 8,2526 9.5,2527 "Gus",2528 "North",2529 5,2530 122531 ]2532 },2533 "source": "libreoffice+python"2534 },2535 {2536 "f": "=SORTBY(A1:B10,D1:D10)",2537 "py": {2538 "rows": 10,2539 "cols": 2,2540 "items": [2541 "Fay",2542 "South",2543 "Cid",2544 "East",2545 "Eve",2546 "East",2547 "Hal",2548 "East",2549 "Ann",2550 "East",2551 "ann",2552 "North",2553 "bob",2554 "West",2555 "bob",2556 "West",2557 "Dee",2558 "West",2559 "Gus",2560 "North"2561 ]2562 },2563 "expect": {2564 "rows": 10,2565 "cols": 2,2566 "items": [2567 "Fay",2568 "South",2569 "Cid",2570 "East",2571 "Eve",2572 "East",2573 "Hal",2574 "East",2575 "Ann",2576 "East",2577 "ann",2578 "North",2579 "bob",2580 "West",2581 "bob",2582 "West",2583 "Dee",2584 "West",2585 "Gus",2586 "North"2587 ]2588 },2589 "source": "libreoffice+python"2590 },2591 {2592 "f": "=SORTBY(A1:B10,B1:B10,-1,A1:A10,-1)",2593 "py": {2594 "rows": 10,2595 "cols": 2,2596 "items": [2597 "Dee",2598 "West",2599 "bob",2600 "West",2601 "bob",2602 "West",2603 "Fay",2604 "South",2605 "Gus",2606 "North",2607 "ann",2608 "North",2609 "Hal",2610 "East",2611 "Eve",2612 "East",2613 "Cid",2614 "East",2615 "Ann",2616 "East"2617 ]2618 },2619 "expect": {2620 "rows": 10,2621 "cols": 2,2622 "items": [2623 "Dee",2624 "West",2625 "bob",2626 "West",2627 "bob",2628 "West",2629 "Fay",2630 "South",2631 "Gus",2632 "North",2633 "ann",2634 "North",2635 "Hal",2636 "East",2637 "Eve",2638 "East",2639 "Cid",2640 "East",2641 "Ann",2642 "East"2643 ]2644 },2645 "source": "libreoffice+python"2646 },2647 {2648 "f": "=SORTBY(H1:K3,{3,1,4,2})",2649 "py": {2650 "rows": 3,2651 "cols": 4,2652 "items": [2653 2,2654 4,2655 1,2656 3,2657 6,2658 8,2659 5,2660 7,2661 10,2662 12,2663 9,2664 112665 ]2666 },2667 "expect": {2668 "rows": 3,2669 "cols": 4,2670 "items": [2671 2,2672 4,2673 1,2674 3,2675 6,2676 8,2677 5,2678 7,2679 10,2680 12,2681 9,2682 112683 ]2684 },2685 "source": "libreoffice+python"2686 },2687 {2688 "f": "=SORTBY(H1:K3,{3;1;2},-1)",2689 "py": {2690 "rows": 3,2691 "cols": 4,2692 "items": [2693 1,2694 2,2695 3,2696 4,2697 9,2698 10,2699 11,2700 12,2701 5,2702 6,2703 7,2704 82705 ]2706 },2707 "expect": {2708 "rows": 3,2709 "cols": 4,2710 "items": [2711 1,2712 2,2713 3,2714 4,2715 9,2716 10,2717 11,2718 12,2719 5,2720 6,2721 7,2722 82723 ]2724 },2725 "source": "libreoffice+python"2726 },2727 {2728 "f": "=SORTBY(A1:A10,C1:C9)",2729 "py": "#VALUE!",2730 "expect": "#VALUE!",2731 "source": "libreoffice+python"2732 },2733 {2734 "f": "=SORTBY(A1:A10,C1:C10,3)",2735 "py": "#VALUE!",2736 "expect": "#VALUE!",2737 "source": "libreoffice+python"2738 },2739 {2740 "f": "=SORTBY(Q1:Q8,Q1:Q8,-1)",2741 "py": {2742 "rows": 8,2743 "cols": 1,2744 "items": [2745 true,2746 false,2747 "c",2748 "b",2749 "A",2750 3,2751 2,2752 12753 ]2754 },2755 "source": "python",2756 "expect": {2757 "rows": 8,2758 "cols": 1,2759 "items": [2760 true,2761 false,2762 "c",2763 "b",2764 "A",2765 3,2766 2,2767 12768 ]2769 }2770 },2771 {2772 "f": "=UNIQUE(B1:B10)",2773 "py": {2774 "rows": 4,2775 "cols": 1,2776 "items": [2777 "East",2778 "West",2779 "North",2780 "South"2781 ]2782 },2783 "expect": {2784 "rows": 4,2785 "cols": 1,2786 "items": [2787 "East",2788 "West",2789 "North",2790 "South"2791 ]2792 },2793 "source": "libreoffice+python"2794 },2795 {2796 "f": "=UNIQUE(A1:A10)",2797 "py": {2798 "rows": 8,2799 "cols": 1,2800 "items": [2801 "Ann",2802 "bob",2803 "Cid",2804 "Dee",2805 "Eve",2806 "Fay",2807 "Gus",2808 "Hal"2809 ]2810 },2811 "expect": {2812 "rows": 8,2813 "cols": 1,2814 "items": [2815 "Ann",2816 "bob",2817 "Cid",2818 "Dee",2819 "Eve",2820 "Fay",2821 "Gus",2822 "Hal"2823 ]2824 },2825 "source": "libreoffice+python"2826 },2827 {2828 "f": "=UNIQUE(C1:C10)",2829 "py": {2830 "rows": 6,2831 "cols": 1,2832 "items": [2833 30,2834 12,2835 45,2836 8,2837 60,2838 52839 ]2840 },2841 "expect": {2842 "rows": 6,2843 "cols": 1,2844 "items": [2845 30,2846 12,2847 45,2848 8,2849 60,2850 52851 ]2852 },2853 "source": "libreoffice+python"2854 },2855 {2856 "f": "=UNIQUE(B1:C10)",2857 "py": {2858 "rows": 7,2859 "cols": 2,2860 "items": [2861 "East",2862 30,2863 "West",2864 12,2865 "East",2866 45,2867 "North",2868 30,2869 "West",2870 8,2871 "South",2872 60,2873 "North",2874 52875 ]2876 },2877 "expect": {2878 "rows": 7,2879 "cols": 2,2880 "items": [2881 "East",2882 30,2883 "West",2884 12,2885 "East",2886 45,2887 "North",2888 30,2889 "West",2890 8,2891 "South",2892 60,2893 "North",2894 52895 ]2896 },2897 "source": "libreoffice+python"2898 },2899 {2900 "f": "=UNIQUE(A1:B10)",2901 "py": {2902 "rows": 9,2903 "cols": 2,2904 "items": [2905 "Ann",2906 "East",2907 "bob",2908 "West",2909 "Cid",2910 "East",2911 "ann",2912 "North",2913 "Dee",2914 "West",2915 "Eve",2916 "East",2917 "Fay",2918 "South",2919 "Gus",2920 "North",2921 "Hal",2922 "East"2923 ]2924 },2925 "expect": {2926 "rows": 9,2927 "cols": 2,2928 "items": [2929 "Ann",2930 "East",2931 "bob",2932 "West",2933 "Cid",2934 "East",2935 "ann",2936 "North",2937 "Dee",2938 "West",2939 "Eve",2940 "East",2941 "Fay",2942 "South",2943 "Gus",2944 "North",2945 "Hal",2946 "East"2947 ]2948 },2949 "source": "libreoffice+python"2950 },2951 {2952 "f": "=UNIQUE(C1:C10,FALSE,TRUE)",2953 "py": {2954 "rows": 3,2955 "cols": 1,2956 "items": [2957 8,2958 60,2959 52960 ]2961 },2962 "expect": {2963 "rows": 3,2964 "cols": 1,2965 "items": [2966 8,2967 60,2968 52969 ]2970 },2971 "source": "libreoffice+python"2972 },2973 {2974 "f": "=UNIQUE(A1:A10,,TRUE)",2975 "py": {2976 "rows": 6,2977 "cols": 1,2978 "items": [2979 "Cid",2980 "Dee",2981 "Eve",2982 "Fay",2983 "Gus",2984 "Hal"2985 ]2986 },2987 "expect": {2988 "rows": 6,2989 "cols": 1,2990 "items": [2991 "Cid",2992 "Dee",2993 "Eve",2994 "Fay",2995 "Gus",2996 "Hal"2997 ]2998 },2999 "source": "libreoffice+python"3000 },3001 {3002 "f": "=UNIQUE(B1:B10,FALSE,TRUE)",3003 "py": "South",3004 "expect": "South",3005 "source": "libreoffice+python"3006 },3007 {3008 "f": "=UNIQUE({1,2,1,3,2},TRUE)",3009 "py": {3010 "rows": 1,3011 "cols": 3,3012 "items": [3013 1,3014 2,3015 33016 ]3017 },3018 "expect": {3019 "rows": 1,3020 "cols": 3,3021 "items": [3022 1,3023 2,3024 33025 ]3026 },3027 "source": "libreoffice+python"3028 },3029 {3030 "f": "=UNIQUE({1,2,1,3,2},TRUE,TRUE)",3031 "py": 3,3032 "expect": 3,3033 "source": "libreoffice+python"3034 },3035 {3036 "f": "=UNIQUE({1,2,1,3,2})",3037 "py": {3038 "rows": 1,3039 "cols": 5,3040 "items": [3041 1,3042 2,3043 1,3044 3,3045 23046 ]3047 },3048 "expect": {3049 "rows": 1,3050 "cols": 5,3051 "items": [3052 1,3053 2,3054 1,3055 3,3056 23057 ]3058 },3059 "source": "libreoffice+python"3060 },3061 {3062 "f": "=UNIQUE({1,1;2,2;1,1;1,2})",3063 "py": {3064 "rows": 3,3065 "cols": 2,3066 "items": [3067 1,3068 1,3069 2,3070 2,3071 1,3072 23073 ]3074 },3075 "expect": {3076 "rows": 3,3077 "cols": 2,3078 "items": [3079 1,3080 1,3081 2,3082 2,3083 1,3084 23085 ]3086 },3087 "source": "libreoffice+python"3088 },3089 {3090 "f": "=UNIQUE({1;1;1},,TRUE)",3091 "py": "#VALUE!",3092 "source": "python",3093 "expect": "#VALUE!"3094 },3095 {3096 "f": "=UNIQUE(F1:F5)",3097 "py": {3098 "rows": 4,3099 "cols": 1,3100 "items": [3101 7,3102 3,3103 9,3104 13105 ]3106 },3107 "expect": {3108 "rows": 4,3109 "cols": 1,3110 "items": [3111 7,3112 3,3113 9,3114 13115 ]3116 },3117 "source": "libreoffice+python"3118 },3119 {3120 "f": "=UNIQUE({\"a\";\"A\";\"b\";1;\"1\"})",3121 "py": {3122 "rows": 4,3123 "cols": 1,3124 "items": [3125 "a",3126 "b",3127 1,3128 "1"3129 ]3130 },3131 "source": "python",3132 "expect": {3133 "rows": 4,3134 "cols": 1,3135 "items": [3136 "a",3137 "b",3138 1,3139 "1"3140 ]3141 }3142 },3143 {3144 "f": "=SORT(UNIQUE(B1:B10))",3145 "py": {3146 "rows": 4,3147 "cols": 1,3148 "items": [3149 "East",3150 "North",3151 "South",3152 "West"3153 ]3154 },3155 "expect": {3156 "rows": 4,3157 "cols": 1,3158 "items": [3159 "East",3160 "North",3161 "South",3162 "West"3163 ]3164 },3165 "source": "libreoffice+python"3166 },3167 {3168 "f": "=SEQUENCE(4)",3169 "py": {3170 "rows": 4,3171 "cols": 1,3172 "items": [3173 1,3174 2,3175 3,3176 43177 ]3178 },3179 "expect": {3180 "rows": 4,3181 "cols": 1,3182 "items": [3183 1,3184 2,3185 3,3186 43187 ]3188 },3189 "source": "libreoffice+python"3190 },3191 {3192 "f": "=SEQUENCE(3,4)",3193 "py": {3194 "rows": 3,3195 "cols": 4,3196 "items": [3197 1,3198 2,3199 3,3200 4,3201 5,3202 6,3203 7,3204 8,3205 9,3206 10,3207 11,3208 123209 ]3210 },3211 "expect": {3212 "rows": 3,3213 "cols": 4,3214 "items": [3215 1,3216 2,3217 3,3218 4,3219 5,3220 6,3221 7,3222 8,3223 9,3224 10,3225 11,3226 123227 ]3228 },3229 "source": "libreoffice+python"3230 },3231 {3232 "f": "=SEQUENCE(2,3,10)",3233 "py": {3234 "rows": 2,3235 "cols": 3,3236 "items": [3237 10,3238 11,3239 12,3240 13,3241 14,3242 153243 ]3244 },3245 "expect": {3246 "rows": 2,3247 "cols": 3,3248 "items": [3249 10,3250 11,3251 12,3252 13,3253 14,3254 153255 ]3256 },3257 "source": "libreoffice+python"3258 },3259 {3260 "f": "=SEQUENCE(2,3,10,5)",3261 "py": {3262 "rows": 2,3263 "cols": 3,3264 "items": [3265 10,3266 15,3267 20,3268 25,3269 30,3270 353271 ]3272 },3273 "expect": {3274 "rows": 2,3275 "cols": 3,3276 "items": [3277 10,3278 15,3279 20,3280 25,3281 30,3282 353283 ]3284 },3285 "source": "libreoffice+python"3286 },3287 {3288 "f": "=SEQUENCE(5,1,0,-2)",3289 "py": {3290 "rows": 5,3291 "cols": 1,3292 "items": [3293 0,3294 -2,3295 -4,3296 -6,3297 -83298 ]3299 },3300 "expect": {3301 "rows": 5,3302 "cols": 1,3303 "items": [3304 0,3305 -2,3306 -4,3307 -6,3308 -83309 ]3310 },3311 "source": "libreoffice+python"3312 },3313 {3314 "f": "=SEQUENCE(1,6,0.5,0.25)",3315 "py": {3316 "rows": 1,3317 "cols": 6,3318 "items": [3319 0.5,3320 0.75,3321 1.0,3322 1.25,3323 1.5,3324 1.753325 ]3326 },3327 "expect": {3328 "rows": 1,3329 "cols": 6,3330 "items": [3331 0.5,3332 0.75,3333 1,3334 1.25,3335 1.5,3336 1.753337 ]3338 },3339 "source": "libreoffice+python"3340 },3341 {3342 "f": "=SEQUENCE(1)",3343 "py": 1,3344 "expect": 1,3345 "source": "libreoffice+python"3346 },3347 {3348 "f": "=SEQUENCE(3,,5)",3349 "py": {3350 "rows": 3,3351 "cols": 1,3352 "items": [3353 5,3354 6,3355 73356 ]3357 },3358 "expect": {3359 "rows": 3,3360 "cols": 1,3361 "items": [3362 5,3363 6,3364 73365 ]3366 },3367 "source": "libreoffice+python"3368 },3369 {3370 "f": "=SEQUENCE(2,2,,3)",3371 "py": {3372 "rows": 2,3373 "cols": 2,3374 "items": [3375 1,3376 4,3377 7,3378 103379 ]3380 },3381 "expect": {3382 "rows": 2,3383 "cols": 2,3384 "items": [3385 1,3386 4,3387 7,3388 103389 ]3390 },3391 "source": "libreoffice+python"3392 },3393 {3394 "f": "=SEQUENCE(3.9,2.2)",3395 "py": {3396 "rows": 3,3397 "cols": 2,3398 "items": [3399 1,3400 2,3401 3,3402 4,3403 5,3404 63405 ]3406 },3407 "expect": {3408 "rows": 3,3409 "cols": 2,3410 "items": [3411 1,3412 2,3413 3,3414 4,3415 5,3416 63417 ]3418 },3419 "source": "libreoffice+python"3420 },3421 {3422 "f": "=SEQUENCE(0)",3423 "py": "#VALUE!",3424 "source": "python",3425 "expect": "#VALUE!"3426 },3427 {3428 "f": "=SEQUENCE(-1)",3429 "py": "#VALUE!",3430 "expect": "#VALUE!",3431 "source": "libreoffice+python"3432 },3433 {3434 "f": "=SEQUENCE(2,0)",3435 "py": "#VALUE!",3436 "source": "python",3437 "expect": "#VALUE!"3438 },3439 {3440 "f": "=TAKE(H1:K3,1)",3441 "py": {3442 "rows": 1,3443 "cols": 4,3444 "items": [3445 1,3446 2,3447 3,3448 43449 ]3450 },3451 "expect": {3452 "rows": 1,3453 "cols": 4,3454 "items": [3455 1,3456 2,3457 3,3458 43459 ]3460 },3461 "source": "libreoffice+python"3462 },3463 {3464 "f": "=TAKE(H1:K3,1,1)",3465 "py": 1,3466 "expect": 1,3467 "source": "libreoffice+python"3468 },3469 {3470 "f": "=TAKE(H1:K3,1,3)",3471 "py": {3472 "rows": 1,3473 "cols": 3,3474 "items": [3475 1,3476 2,3477 33478 ]3479 },3480 "expect": {3481 "rows": 1,3482 "cols": 3,3483 "items": [3484 1,3485 2,3486 33487 ]3488 },3489 "source": "libreoffice+python"3490 },3491 {3492 "f": "=TAKE(H1:K3,1,-2)",3493 "py": {3494 "rows": 1,3495 "cols": 2,3496 "items": [3497 3,3498 43499 ]3500 },3501 "expect": {3502 "rows": 1,3503 "cols": 2,3504 "items": [3505 3,3506 43507 ]3508 },3509 "source": "libreoffice+python"3510 },3511 {3512 "f": "=TAKE(H1:K3,1,9)",3513 "py": {3514 "rows": 1,3515 "cols": 4,3516 "items": [3517 1,3518 2,3519 3,3520 43521 ]3522 },3523 "expect": {3524 "rows": 1,3525 "cols": 4,3526 "items": [3527 1,3528 2,3529 3,3530 43531 ]3532 },3533 "source": "libreoffice+python"3534 },3535 {3536 "f": "=TAKE(H1:K3,2)",3537 "py": {3538 "rows": 2,3539 "cols": 4,3540 "items": [3541 1,3542 2,3543 3,3544 4,3545 5,3546 6,3547 7,3548 83549 ]3550 },3551 "expect": {3552 "rows": 2,3553 "cols": 4,3554 "items": [3555 1,3556 2,3557 3,3558 4,3559 5,3560 6,3561 7,3562 83563 ]3564 },3565 "source": "libreoffice+python"3566 },3567 {3568 "f": "=TAKE(H1:K3,2,1)",3569 "py": {3570 "rows": 2,3571 "cols": 1,3572 "items": [3573 1,3574 53575 ]3576 },3577 "expect": {3578 "rows": 2,3579 "cols": 1,3580 "items": [3581 1,3582 53583 ]3584 },3585 "source": "libreoffice+python"3586 },3587 {3588 "f": "=TAKE(H1:K3,2,3)",3589 "py": {3590 "rows": 2,3591 "cols": 3,3592 "items": [3593 1,3594 2,3595 3,3596 5,3597 6,3598 73599 ]3600 },3601 "expect": {3602 "rows": 2,3603 "cols": 3,3604 "items": [3605 1,3606 2,3607 3,3608 5,3609 6,3610 73611 ]3612 },3613 "source": "libreoffice+python"3614 },3615 {3616 "f": "=TAKE(H1:K3,2,-2)",3617 "py": {3618 "rows": 2,3619 "cols": 2,3620 "items": [3621 3,3622 4,3623 7,3624 83625 ]3626 },3627 "expect": {3628 "rows": 2,3629 "cols": 2,3630 "items": [3631 3,3632 4,3633 7,3634 83635 ]3636 },3637 "source": "libreoffice+python"3638 },3639 {3640 "f": "=TAKE(H1:K3,2,9)",3641 "py": {3642 "rows": 2,3643 "cols": 4,3644 "items": [3645 1,3646 2,3647 3,3648 4,3649 5,3650 6,3651 7,3652 83653 ]3654 },3655 "expect": {3656 "rows": 2,3657 "cols": 4,3658 "items": [3659 1,3660 2,3661 3,3662 4,3663 5,3664 6,3665 7,3666 83667 ]3668 },3669 "source": "libreoffice+python"3670 },3671 {3672 "f": "=TAKE(H1:K3,3)",3673 "py": {3674 "rows": 3,3675 "cols": 4,3676 "items": [3677 1,3678 2,3679 3,3680 4,3681 5,3682 6,3683 7,3684 8,3685 9,3686 10,3687 11,3688 123689 ]3690 },3691 "expect": {3692 "rows": 3,3693 "cols": 4,3694 "items": [3695 1,3696 2,3697 3,3698 4,3699 5,3700 6,3701 7,3702 8,3703 9,3704 10,3705 11,3706 123707 ]3708 },3709 "source": "libreoffice+python"3710 },3711 {3712 "f": "=TAKE(H1:K3,3,1)",3713 "py": {3714 "rows": 3,3715 "cols": 1,3716 "items": [3717 1,3718 5,3719 93720 ]3721 },3722 "expect": {3723 "rows": 3,3724 "cols": 1,3725 "items": [3726 1,3727 5,3728 93729 ]3730 },3731 "source": "libreoffice+python"3732 },3733 {3734 "f": "=TAKE(H1:K3,3,3)",3735 "py": {3736 "rows": 3,3737 "cols": 3,3738 "items": [3739 1,3740 2,3741 3,3742 5,3743 6,3744 7,3745 9,3746 10,3747 113748 ]3749 },3750 "expect": {3751 "rows": 3,3752 "cols": 3,3753 "items": [3754 1,3755 2,3756 3,3757 5,3758 6,3759 7,3760 9,3761 10,3762 113763 ]3764 },3765 "source": "libreoffice+python"3766 },3767 {3768 "f": "=TAKE(H1:K3,3,-2)",3769 "py": {3770 "rows": 3,3771 "cols": 2,3772 "items": [3773 3,3774 4,3775 7,3776 8,3777 11,3778 123779 ]3780 },3781 "expect": {3782 "rows": 3,3783 "cols": 2,3784 "items": [3785 3,3786 4,3787 7,3788 8,3789 11,3790 123791 ]3792 },3793 "source": "libreoffice+python"3794 },3795 {3796 "f": "=TAKE(H1:K3,3,9)",3797 "py": {3798 "rows": 3,3799 "cols": 4,3800 "items": [3801 1,3802 2,3803 3,3804 4,3805 5,3806 6,3807 7,3808 8,3809 9,3810 10,3811 11,3812 123813 ]3814 },3815 "expect": {3816 "rows": 3,3817 "cols": 4,3818 "items": [3819 1,3820 2,3821 3,3822 4,3823 5,3824 6,3825 7,3826 8,3827 9,3828 10,3829 11,3830 123831 ]3832 },3833 "source": "libreoffice+python"3834 },3835 {3836 "f": "=TAKE(H1:K3,5)",3837 "py": {3838 "rows": 3,3839 "cols": 4,3840 "items": [3841 1,3842 2,3843 3,3844 4,3845 5,3846 6,3847 7,3848 8,3849 9,3850 10,3851 11,3852 123853 ]3854 },3855 "expect": {3856 "rows": 3,3857 "cols": 4,3858 "items": [3859 1,3860 2,3861 3,3862 4,3863 5,3864 6,3865 7,3866 8,3867 9,3868 10,3869 11,3870 123871 ]3872 },3873 "source": "libreoffice+python"3874 },3875 {3876 "f": "=TAKE(H1:K3,5,1)",3877 "py": {3878 "rows": 3,3879 "cols": 1,3880 "items": [3881 1,3882 5,3883 93884 ]3885 },3886 "expect": {3887 "rows": 3,3888 "cols": 1,3889 "items": [3890 1,3891 5,3892 93893 ]3894 },3895 "source": "libreoffice+python"3896 },3897 {3898 "f": "=TAKE(H1:K3,5,3)",3899 "py": {3900 "rows": 3,3901 "cols": 3,3902 "items": [3903 1,3904 2,3905 3,3906 5,3907 6,3908 7,3909 9,3910 10,3911 113912 ]3913 },3914 "expect": {3915 "rows": 3,3916 "cols": 3,3917 "items": [3918 1,3919 2,3920 3,3921 5,3922 6,3923 7,3924 9,3925 10,3926 113927 ]3928 },3929 "source": "libreoffice+python"3930 },3931 {3932 "f": "=TAKE(H1:K3,5,-2)",3933 "py": {3934 "rows": 3,3935 "cols": 2,3936 "items": [3937 3,3938 4,3939 7,3940 8,3941 11,3942 123943 ]3944 },3945 "expect": {3946 "rows": 3,3947 "cols": 2,3948 "items": [3949 3,3950 4,3951 7,3952 8,3953 11,3954 123955 ]3956 },3957 "source": "libreoffice+python"3958 },3959 {3960 "f": "=TAKE(H1:K3,5,9)",3961 "py": {3962 "rows": 3,3963 "cols": 4,3964 "items": [3965 1,3966 2,3967 3,3968 4,3969 5,3970 6,3971 7,3972 8,3973 9,3974 10,3975 11,3976 123977 ]3978 },3979 "expect": {3980 "rows": 3,3981 "cols": 4,3982 "items": [3983 1,3984 2,3985 3,3986 4,3987 5,3988 6,3989 7,3990 8,3991 9,3992 10,3993 11,3994 123995 ]3996 },3997 "source": "libreoffice+python"3998 },3999 {4000 "f": "=TAKE(H1:K3,-1)",4001 "py": {4002 "rows": 1,4003 "cols": 4,4004 "items": [4005 9,4006 10,4007 11,4008 124009 ]4010 },4011 "expect": {4012 "rows": 1,4013 "cols": 4,4014 "items": [4015 9,4016 10,4017 11,4018 124019 ]4020 },4021 "source": "libreoffice+python"4022 },4023 {4024 "f": "=TAKE(H1:K3,-1,1)",4025 "py": 9,4026 "expect": 9,4027 "source": "libreoffice+python"4028 },4029 {4030 "f": "=TAKE(H1:K3,-1,3)",4031 "py": {4032 "rows": 1,4033 "cols": 3,4034 "items": [4035 9,4036 10,4037 114038 ]4039 },4040 "expect": {4041 "rows": 1,4042 "cols": 3,4043 "items": [4044 9,4045 10,4046 114047 ]4048 },4049 "source": "libreoffice+python"4050 },4051 {4052 "f": "=TAKE(H1:K3,-1,-2)",4053 "py": {4054 "rows": 1,4055 "cols": 2,4056 "items": [4057 11,4058 124059 ]4060 },4061 "expect": {4062 "rows": 1,4063 "cols": 2,4064 "items": [4065 11,4066 124067 ]4068 },4069 "source": "libreoffice+python"4070 },4071 {4072 "f": "=TAKE(H1:K3,-1,9)",4073 "py": {4074 "rows": 1,4075 "cols": 4,4076 "items": [4077 9,4078 10,4079 11,4080 124081 ]4082 },4083 "expect": {4084 "rows": 1,4085 "cols": 4,4086 "items": [4087 9,4088 10,4089 11,4090 124091 ]4092 },4093 "source": "libreoffice+python"4094 },4095 {4096 "f": "=TAKE(H1:K3,-2)",4097 "py": {4098 "rows": 2,4099 "cols": 4,4100 "items": [4101 5,4102 6,4103 7,4104 8,4105 9,4106 10,4107 11,4108 124109 ]4110 },4111 "expect": {4112 "rows": 2,4113 "cols": 4,4114 "items": [4115 5,4116 6,4117 7,4118 8,4119 9,4120 10,4121 11,4122 124123 ]4124 },4125 "source": "libreoffice+python"4126 },4127 {4128 "f": "=TAKE(H1:K3,-2,1)",4129 "py": {4130 "rows": 2,4131 "cols": 1,4132 "items": [4133 5,4134 94135 ]4136 },4137 "expect": {4138 "rows": 2,4139 "cols": 1,4140 "items": [4141 5,4142 94143 ]4144 },4145 "source": "libreoffice+python"4146 },4147 {4148 "f": "=TAKE(H1:K3,-2,3)",4149 "py": {4150 "rows": 2,4151 "cols": 3,4152 "items": [4153 5,4154 6,4155 7,4156 9,4157 10,4158 114159 ]4160 },4161 "expect": {4162 "rows": 2,4163 "cols": 3,4164 "items": [4165 5,4166 6,4167 7,4168 9,4169 10,4170 114171 ]4172 },4173 "source": "libreoffice+python"4174 },4175 {4176 "f": "=TAKE(H1:K3,-2,-2)",4177 "py": {4178 "rows": 2,4179 "cols": 2,4180 "items": [4181 7,4182 8,4183 11,4184 124185 ]4186 },4187 "expect": {4188 "rows": 2,4189 "cols": 2,4190 "items": [4191 7,4192 8,4193 11,4194 124195 ]4196 },4197 "source": "libreoffice+python"4198 },4199 {4200 "f": "=TAKE(H1:K3,-2,9)",4201 "py": {4202 "rows": 2,4203 "cols": 4,4204 "items": [4205 5,4206 6,4207 7,4208 8,4209 9,4210 10,4211 11,4212 124213 ]4214 },4215 "expect": {4216 "rows": 2,4217 "cols": 4,4218 "items": [4219 5,4220 6,4221 7,4222 8,4223 9,4224 10,4225 11,4226 124227 ]4228 },4229 "source": "libreoffice+python"4230 },4231 {4232 "f": "=TAKE(H1:K3,-5)",4233 "py": {4234 "rows": 3,4235 "cols": 4,4236 "items": [4237 1,4238 2,4239 3,4240 4,4241 5,4242 6,4243 7,4244 8,4245 9,4246 10,4247 11,4248 124249 ]4250 },4251 "expect": {4252 "rows": 3,4253 "cols": 4,4254 "items": [4255 1,4256 2,4257 3,4258 4,4259 5,4260 6,4261 7,4262 8,4263 9,4264 10,4265 11,4266 124267 ]4268 },4269 "source": "libreoffice+python"4270 },4271 {4272 "f": "=TAKE(H1:K3,-5,1)",4273 "py": {4274 "rows": 3,4275 "cols": 1,4276 "items": [4277 1,4278 5,4279 94280 ]4281 },4282 "expect": {4283 "rows": 3,4284 "cols": 1,4285 "items": [4286 1,4287 5,4288 94289 ]4290 },4291 "source": "libreoffice+python"4292 },4293 {4294 "f": "=TAKE(H1:K3,-5,3)",4295 "py": {4296 "rows": 3,4297 "cols": 3,4298 "items": [4299 1,4300 2,4301 3,4302 5,4303 6,4304 7,4305 9,4306 10,4307 114308 ]4309 },4310 "expect": {4311 "rows": 3,4312 "cols": 3,4313 "items": [4314 1,4315 2,4316 3,4317 5,4318 6,4319 7,4320 9,4321 10,4322 114323 ]4324 },4325 "source": "libreoffice+python"4326 },4327 {4328 "f": "=TAKE(H1:K3,-5,-2)",4329 "py": {4330 "rows": 3,4331 "cols": 2,4332 "items": [4333 3,4334 4,4335 7,4336 8,4337 11,4338 124339 ]4340 },4341 "expect": {4342 "rows": 3,4343 "cols": 2,4344 "items": [4345 3,4346 4,4347 7,4348 8,4349 11,4350 124351 ]4352 },4353 "source": "libreoffice+python"4354 },4355 {4356 "f": "=TAKE(H1:K3,-5,9)",4357 "py": {4358 "rows": 3,4359 "cols": 4,4360 "items": [4361 1,4362 2,4363 3,4364 4,4365 5,4366 6,4367 7,4368 8,4369 9,4370 10,4371 11,4372 124373 ]4374 },4375 "expect": {4376 "rows": 3,4377 "cols": 4,4378 "items": [4379 1,4380 2,4381 3,4382 4,4383 5,4384 6,4385 7,4386 8,4387 9,4388 10,4389 11,4390 124391 ]4392 },4393 "source": "libreoffice+python"4394 },4395 {4396 "f": "=TAKE(H1:K3,,1)",4397 "py": {4398 "rows": 3,4399 "cols": 1,4400 "items": [4401 1,4402 5,4403 94404 ]4405 },4406 "expect": {4407 "rows": 3,4408 "cols": 1,4409 "items": [4410 1,4411 5,4412 94413 ]4414 },4415 "source": "libreoffice+python"4416 },4417 {4418 "f": "=TAKE(H1:K3,,2)",4419 "py": {4420 "rows": 3,4421 "cols": 2,4422 "items": [4423 1,4424 2,4425 5,4426 6,4427 9,4428 104429 ]4430 },4431 "expect": {4432 "rows": 3,4433 "cols": 2,4434 "items": [4435 1,4436 2,4437 5,4438 6,4439 9,4440 104441 ]4442 },4443 "source": "libreoffice+python"4444 },4445 {4446 "f": "=TAKE(H1:K3,,-1)",4447 "py": {4448 "rows": 3,4449 "cols": 1,4450 "items": [4451 4,4452 8,4453 124454 ]4455 },4456 "expect": {4457 "rows": 3,4458 "cols": 1,4459 "items": [4460 4,4461 8,4462 124463 ]4464 },4465 "source": "libreoffice+python"4466 },4467 {4468 "f": "=TAKE(H1:K3,,-3)",4469 "py": {4470 "rows": 3,4471 "cols": 3,4472 "items": [4473 2,4474 3,4475 4,4476 6,4477 7,4478 8,4479 10,4480 11,4481 124482 ]4483 },4484 "expect": {4485 "rows": 3,4486 "cols": 3,4487 "items": [4488 2,4489 3,4490 4,4491 6,4492 7,4493 8,4494 10,4495 11,4496 124497 ]4498 },4499 "source": "libreoffice+python"4500 },4501 {4502 "f": "=TAKE(A1:D10,3)",4503 "py": {4504 "rows": 3,4505 "cols": 4,4506 "items": [4507 "Ann",4508 "East",4509 30,4510 2.5,4511 "bob",4512 "West",4513 12,4514 4.0,4515 "Cid",4516 "East",4517 45,4518 1.254519 ]4520 },4521 "expect": {4522 "rows": 3,4523 "cols": 4,4524 "items": [4525 "Ann",4526 "East",4527 30,4528 2.5,4529 "bob",4530 "West",4531 12,4532 4,4533 "Cid",4534 "East",4535 45,4536 1.254537 ]4538 },4539 "source": "libreoffice+python"4540 },4541 {4542 "f": "=TAKE(A1:D10,-2,2)",4543 "py": {4544 "rows": 2,4545 "cols": 2,4546 "items": [4547 "Gus",4548 "North",4549 "Hal",4550 "East"4551 ]4552 },4553 "expect": {4554 "rows": 2,4555 "cols": 2,4556 "items": [4557 "Gus",4558 "North",4559 "Hal",4560 "East"4561 ]4562 },4563 "source": "libreoffice+python"4564 },4565 {4566 "f": "=TAKE(H1:K3,0)",4567 "py": "#VALUE!",4568 "expect": "#VALUE!",4569 "source": "libreoffice+python"4570 },4571 {4572 "f": "=DROP(H1:K3,1)",4573 "py": {4574 "rows": 2,4575 "cols": 4,4576 "items": [4577 5,4578 6,4579 7,4580 8,4581 9,4582 10,4583 11,4584 124585 ]4586 },4587 "expect": {4588 "rows": 2,4589 "cols": 4,4590 "items": [4591 5,4592 6,4593 7,4594 8,4595 9,4596 10,4597 11,4598 124599 ]4600 },4601 "source": "libreoffice+python"4602 },4603 {4604 "f": "=DROP(H1:K3,1,1)",4605 "py": {4606 "rows": 2,4607 "cols": 3,4608 "items": [4609 6,4610 7,4611 8,4612 10,4613 11,4614 124615 ]4616 },4617 "expect": {4618 "rows": 2,4619 "cols": 3,4620 "items": [4621 6,4622 7,4623 8,4624 10,4625 11,4626 124627 ]4628 },4629 "source": "libreoffice+python"4630 },4631 {4632 "f": "=DROP(H1:K3,1,3)",4633 "py": {4634 "rows": 2,4635 "cols": 1,4636 "items": [4637 8,4638 124639 ]4640 },4641 "expect": {4642 "rows": 2,4643 "cols": 1,4644 "items": [4645 8,4646 124647 ]4648 },4649 "source": "libreoffice+python"4650 },4651 {4652 "f": "=DROP(H1:K3,1,-2)",4653 "py": {4654 "rows": 2,4655 "cols": 2,4656 "items": [4657 5,4658 6,4659 9,4660 104661 ]4662 },4663 "expect": {4664 "rows": 2,4665 "cols": 2,4666 "items": [4667 5,4668 6,4669 9,4670 104671 ]4672 },4673 "source": "libreoffice+python"4674 },4675 {4676 "f": "=DROP(H1:K3,2)",4677 "py": {4678 "rows": 1,4679 "cols": 4,4680 "items": [4681 9,4682 10,4683 11,4684 124685 ]4686 },4687 "expect": {4688 "rows": 1,4689 "cols": 4,4690 "items": [4691 9,4692 10,4693 11,4694 124695 ]4696 },4697 "source": "libreoffice+python"4698 },4699 {4700 "f": "=DROP(H1:K3,2,1)",4701 "py": {4702 "rows": 1,4703 "cols": 3,4704 "items": [4705 10,4706 11,4707 124708 ]4709 },4710 "expect": {4711 "rows": 1,4712 "cols": 3,4713 "items": [4714 10,4715 11,4716 124717 ]4718 },4719 "source": "libreoffice+python"4720 },4721 {4722 "f": "=DROP(H1:K3,2,3)",4723 "py": 12,4724 "expect": 12,4725 "source": "libreoffice+python"4726 },4727 {4728 "f": "=DROP(H1:K3,2,-2)",4729 "py": {4730 "rows": 1,4731 "cols": 2,4732 "items": [4733 9,4734 104735 ]4736 },4737 "expect": {4738 "rows": 1,4739 "cols": 2,4740 "items": [4741 9,4742 104743 ]4744 },4745 "source": "libreoffice+python"4746 },4747 {4748 "f": "=DROP(H1:K3,-1)",4749 "py": {4750 "rows": 2,4751 "cols": 4,4752 "items": [4753 1,4754 2,4755 3,4756 4,4757 5,4758 6,4759 7,4760 84761 ]4762 },4763 "expect": {4764 "rows": 2,4765 "cols": 4,4766 "items": [4767 1,4768 2,4769 3,4770 4,4771 5,4772 6,4773 7,4774 84775 ]4776 },4777 "source": "libreoffice+python"4778 },4779 {4780 "f": "=DROP(H1:K3,-1,1)",4781 "py": {4782 "rows": 2,4783 "cols": 3,4784 "items": [4785 2,4786 3,4787 4,4788 6,4789 7,4790 84791 ]4792 },4793 "expect": {4794 "rows": 2,4795 "cols": 3,4796 "items": [4797 2,4798 3,4799 4,4800 6,4801 7,4802 84803 ]4804 },4805 "source": "libreoffice+python"4806 },4807 {4808 "f": "=DROP(H1:K3,-1,3)",4809 "py": {4810 "rows": 2,4811 "cols": 1,4812 "items": [4813 4,4814 84815 ]4816 },4817 "expect": {4818 "rows": 2,4819 "cols": 1,4820 "items": [4821 4,4822 84823 ]4824 },4825 "source": "libreoffice+python"4826 },4827 {4828 "f": "=DROP(H1:K3,-1,-2)",4829 "py": {4830 "rows": 2,4831 "cols": 2,4832 "items": [4833 1,4834 2,4835 5,4836 64837 ]4838 },4839 "expect": {4840 "rows": 2,4841 "cols": 2,4842 "items": [4843 1,4844 2,4845 5,4846 64847 ]4848 },4849 "source": "libreoffice+python"4850 },4851 {4852 "f": "=DROP(H1:K3,-2)",4853 "py": {4854 "rows": 1,4855 "cols": 4,4856 "items": [4857 1,4858 2,4859 3,4860 44861 ]4862 },4863 "expect": {4864 "rows": 1,4865 "cols": 4,4866 "items": [4867 1,4868 2,4869 3,4870 44871 ]4872 },4873 "source": "libreoffice+python"4874 },4875 {4876 "f": "=DROP(H1:K3,-2,1)",4877 "py": {4878 "rows": 1,4879 "cols": 3,4880 "items": [4881 2,4882 3,4883 44884 ]4885 },4886 "expect": {4887 "rows": 1,4888 "cols": 3,4889 "items": [4890 2,4891 3,4892 44893 ]4894 },4895 "source": "libreoffice+python"4896 },4897 {4898 "f": "=DROP(H1:K3,-2,3)",4899 "py": 4,4900 "expect": 4,4901 "source": "libreoffice+python"4902 },4903 {4904 "f": "=DROP(H1:K3,-2,-2)",4905 "py": {4906 "rows": 1,4907 "cols": 2,4908 "items": [4909 1,4910 24911 ]4912 },4913 "expect": {4914 "rows": 1,4915 "cols": 2,4916 "items": [4917 1,4918 24919 ]4920 },4921 "source": "libreoffice+python"4922 },4923 {4924 "f": "=DROP(H1:K3,,1)",4925 "py": {4926 "rows": 3,4927 "cols": 3,4928 "items": [4929 2,4930 3,4931 4,4932 6,4933 7,4934 8,4935 10,4936 11,4937 124938 ]4939 },4940 "expect": {4941 "rows": 3,4942 "cols": 3,4943 "items": [4944 2,4945 3,4946 4,4947 6,4948 7,4949 8,4950 10,4951 11,4952 124953 ]4954 },4955 "source": "libreoffice+python"4956 },4957 {4958 "f": "=DROP(H1:K3,,2)",4959 "py": {4960 "rows": 3,4961 "cols": 2,4962 "items": [4963 3,4964 4,4965 7,4966 8,4967 11,4968 124969 ]4970 },4971 "expect": {4972 "rows": 3,4973 "cols": 2,4974 "items": [4975 3,4976 4,4977 7,4978 8,4979 11,4980 124981 ]4982 },4983 "source": "libreoffice+python"4984 },4985 {4986 "f": "=DROP(H1:K3,,-1)",4987 "py": {4988 "rows": 3,4989 "cols": 3,4990 "items": [4991 1,4992 2,4993 3,4994 5,4995 6,4996 7,4997 9,4998 10,4999 115000 ]5001 },5002 "expect": {5003 "rows": 3,5004 "cols": 3,5005 "items": [5006 1,5007 2,5008 3,5009 5,5010 6,5011 7,5012 9,5013 10,5014 115015 ]5016 },5017 "source": "libreoffice+python"5018 },5019 {5020 "f": "=DROP(H1:K3,,-3)",5021 "py": {5022 "rows": 3,5023 "cols": 1,5024 "items": [5025 1,5026 5,5027 95028 ]5029 },5030 "expect": {5031 "rows": 3,5032 "cols": 1,5033 "items": [5034 1,5035 5,5036 95037 ]5038 },5039 "source": "libreoffice+python"5040 },5041 {5042 "f": "=DROP(A1:D10,7)",5043 "py": {5044 "rows": 3,5045 "cols": 4,5046 "items": [5047 "Fay",5048 "South",5049 60,5050 0.75,5051 "Gus",5052 "North",5053 5,5054 12.0,5055 "Hal",5056 "East",5057 30,5058 2.05059 ]5060 },5061 "expect": {5062 "rows": 3,5063 "cols": 4,5064 "items": [5065 "Fay",5066 "South",5067 60,5068 0.75,5069 "Gus",5070 "North",5071 5,5072 12,5073 "Hal",5074 "East",5075 30,5076 25077 ]5078 },5079 "source": "libreoffice+python"5080 },5081 {5082 "f": "=DROP(A1:D10,-8,-2)",5083 "py": {5084 "rows": 2,5085 "cols": 2,5086 "items": [5087 "Ann",5088 "East",5089 "bob",5090 "West"5091 ]5092 },5093 "expect": {5094 "rows": 2,5095 "cols": 2,5096 "items": [5097 "Ann",5098 "East",5099 "bob",5100 "West"5101 ]5102 },5103 "source": "libreoffice+python"5104 },5105 {5106 "f": "=DROP(H1:K3,3)",5107 "py": "#VALUE!",5108 "expect": "#VALUE!",5109 "source": "libreoffice+python"5110 },5111 {5112 "f": "=DROP(H1:K3,1,-4)",5113 "py": "#VALUE!",5114 "expect": "#VALUE!",5115 "source": "libreoffice+python"5116 },5117 {5118 "f": "=DROP(H1:K3,0)",5119 "py": {5120 "rows": 3,5121 "cols": 4,5122 "items": [5123 1,5124 2,5125 3,5126 4,5127 5,5128 6,5129 7,5130 8,5131 9,5132 10,5133 11,5134 125135 ]5136 },5137 "expect": {5138 "rows": 3,5139 "cols": 4,5140 "items": [5141 1,5142 2,5143 3,5144 4,5145 5,5146 6,5147 7,5148 8,5149 9,5150 10,5151 11,5152 125153 ]5154 },5155 "source": "libreoffice+python"5156 },5157 {5158 "f": "=CHOOSEROWS(H1:K3,1)",5159 "py": {5160 "rows": 1,5161 "cols": 4,5162 "items": [5163 1,5164 2,5165 3,5166 45167 ]5168 },5169 "expect": {5170 "rows": 1,5171 "cols": 4,5172 "items": [5173 1,5174 2,5175 3,5176 45177 ]5178 },5179 "source": "libreoffice+python"5180 },5181 {5182 "f": "=CHOOSEROWS(H1:K3,3)",5183 "py": {5184 "rows": 1,5185 "cols": 4,5186 "items": [5187 9,5188 10,5189 11,5190 125191 ]5192 },5193 "expect": {5194 "rows": 1,5195 "cols": 4,5196 "items": [5197 9,5198 10,5199 11,5200 125201 ]5202 },5203 "source": "libreoffice+python"5204 },5205 {5206 "f": "=CHOOSEROWS(H1:K3,-1)",5207 "py": {5208 "rows": 1,5209 "cols": 4,5210 "items": [5211 9,5212 10,5213 11,5214 125215 ]5216 },5217 "expect": {5218 "rows": 1,5219 "cols": 4,5220 "items": [5221 9,5222 10,5223 11,5224 125225 ]5226 },5227 "source": "libreoffice+python"5228 },5229 {5230 "f": "=CHOOSEROWS(H1:K3,1,3)",5231 "py": {5232 "rows": 2,5233 "cols": 4,5234 "items": [5235 1,5236 2,5237 3,5238 4,5239 9,5240 10,5241 11,5242 125243 ]5244 },5245 "expect": {5246 "rows": 2,5247 "cols": 4,5248 "items": [5249 1,5250 2,5251 3,5252 4,5253 9,5254 10,5255 11,5256 125257 ]5258 },5259 "source": "libreoffice+python"5260 },5261 {5262 "f": "=CHOOSEROWS(H1:K3,3,1)",5263 "py": {5264 "rows": 2,5265 "cols": 4,5266 "items": [5267 9,5268 10,5269 11,5270 12,5271 1,5272 2,5273 3,5274 45275 ]5276 },5277 "expect": {5278 "rows": 2,5279 "cols": 4,5280 "items": [5281 9,5282 10,5283 11,5284 12,5285 1,5286 2,5287 3,5288 45289 ]5290 },5291 "source": "libreoffice+python"5292 },5293 {5294 "f": "=CHOOSEROWS(H1:K3,2,2)",5295 "py": {5296 "rows": 2,5297 "cols": 4,5298 "items": [5299 5,5300 6,5301 7,5302 8,5303 5,5304 6,5305 7,5306 85307 ]5308 },5309 "expect": {5310 "rows": 2,5311 "cols": 4,5312 "items": [5313 5,5314 6,5315 7,5316 8,5317 5,5318 6,5319 7,5320 85321 ]5322 },5323 "source": "libreoffice+python"5324 },5325 {5326 "f": "=CHOOSEROWS(H1:K3,-1,-3)",5327 "py": {5328 "rows": 2,5329 "cols": 4,5330 "items": [5331 9,5332 10,5333 11,5334 12,5335 1,5336 2,5337 3,5338 45339 ]5340 },5341 "expect": {5342 "rows": 2,5343 "cols": 4,5344 "items": [5345 9,5346 10,5347 11,5348 12,5349 1,5350 2,5351 3,5352 45353 ]5354 },5355 "source": "libreoffice+python"5356 },5357 {5358 "f": "=CHOOSEROWS(H1:K3,1,-1,2)",5359 "py": {5360 "rows": 3,5361 "cols": 4,5362 "items": [5363 1,5364 2,5365 3,5366 4,5367 9,5368 10,5369 11,5370 12,5371 5,5372 6,5373 7,5374 85375 ]5376 },5377 "expect": {5378 "rows": 3,5379 "cols": 4,5380 "items": [5381 1,5382 2,5383 3,5384 4,5385 9,5386 10,5387 11,5388 12,5389 5,5390 6,5391 7,5392 85393 ]5394 },5395 "source": "libreoffice+python"5396 },5397 {5398 "f": "=CHOOSECOLS(H1:K3,1)",5399 "py": {5400 "rows": 3,5401 "cols": 1,5402 "items": [5403 1,5404 5,5405 95406 ]5407 },5408 "expect": {5409 "rows": 3,5410 "cols": 1,5411 "items": [5412 1,5413 5,5414 95415 ]5416 },5417 "source": "libreoffice+python"5418 },5419 {5420 "f": "=CHOOSECOLS(H1:K3,4)",5421 "py": {5422 "rows": 3,5423 "cols": 1,5424 "items": [5425 4,5426 8,5427 125428 ]5429 },5430 "expect": {5431 "rows": 3,5432 "cols": 1,5433 "items": [5434 4,5435 8,5436 125437 ]5438 },5439 "source": "libreoffice+python"5440 },5441 {5442 "f": "=CHOOSECOLS(H1:K3,-1)",5443 "py": {5444 "rows": 3,5445 "cols": 1,5446 "items": [5447 4,5448 8,5449 125450 ]5451 },5452 "expect": {5453 "rows": 3,5454 "cols": 1,5455 "items": [5456 4,5457 8,5458 125459 ]5460 },5461 "source": "libreoffice+python"5462 },5463 {5464 "f": "=CHOOSECOLS(H1:K3,1,3)",5465 "py": {5466 "rows": 3,5467 "cols": 2,5468 "items": [5469 1,5470 3,5471 5,5472 7,5473 9,5474 115475 ]5476 },5477 "expect": {5478 "rows": 3,5479 "cols": 2,5480 "items": [5481 1,5482 3,5483 5,5484 7,5485 9,5486 115487 ]5488 },5489 "source": "libreoffice+python"5490 },5491 {5492 "f": "=CHOOSECOLS(H1:K3,4,1)",5493 "py": {5494 "rows": 3,5495 "cols": 2,5496 "items": [5497 4,5498 1,5499 8,5500 5,5501 12,5502 95503 ]5504 },5505 "expect": {5506 "rows": 3,5507 "cols": 2,5508 "items": [5509 4,5510 1,5511 8,5512 5,5513 12,5514 95515 ]5516 },5517 "source": "libreoffice+python"5518 },5519 {5520 "f": "=CHOOSECOLS(H1:K3,2,2)",5521 "py": {5522 "rows": 3,5523 "cols": 2,5524 "items": [5525 2,5526 2,5527 6,5528 6,5529 10,5530 105531 ]5532 },5533 "expect": {5534 "rows": 3,5535 "cols": 2,5536 "items": [5537 2,5538 2,5539 6,5540 6,5541 10,5542 105543 ]5544 },5545 "source": "libreoffice+python"5546 },5547 {5548 "f": "=CHOOSECOLS(H1:K3,-1,-4)",5549 "py": {5550 "rows": 3,5551 "cols": 2,5552 "items": [5553 4,5554 1,5555 8,5556 5,5557 12,5558 95559 ]5560 },5561 "expect": {5562 "rows": 3,5563 "cols": 2,5564 "items": [5565 4,5566 1,5567 8,5568 5,5569 12,5570 95571 ]5572 },5573 "source": "libreoffice+python"5574 },5575 {5576 "f": "=CHOOSECOLS(H1:K3,1,-1,2,3)",5577 "py": {5578 "rows": 3,5579 "cols": 4,5580 "items": [5581 1,5582 4,5583 2,5584 3,5585 5,5586 8,5587 6,5588 7,5589 9,5590 12,5591 10,5592 115593 ]5594 },5595 "expect": {5596 "rows": 3,5597 "cols": 4,5598 "items": [5599 1,5600 4,5601 2,5602 3,5603 5,5604 8,5605 6,5606 7,5607 9,5608 12,5609 10,5610 115611 ]5612 },5613 "source": "libreoffice+python"5614 },5615 {5616 "f": "=CHOOSEROWS(H1:K3,{1,3})",5617 "py": {5618 "rows": 2,5619 "cols": 4,5620 "items": [5621 1,5622 2,5623 3,5624 4,5625 9,5626 10,5627 11,5628 125629 ]5630 },5631 "expect": {5632 "rows": 2,5633 "cols": 4,5634 "items": [5635 1,5636 2,5637 3,5638 4,5639 9,5640 10,5641 11,5642 125643 ]5644 },5645 "source": "libreoffice+python"5646 },5647 {5648 "f": "=CHOOSECOLS(H1:K3,{4;2})",5649 "py": {5650 "rows": 3,5651 "cols": 2,5652 "items": [5653 4,5654 2,5655 8,5656 6,5657 12,5658 105659 ]5660 },5661 "expect": {5662 "rows": 3,5663 "cols": 2,5664 "items": [5665 4,5666 2,5667 8,5668 6,5669 12,5670 105671 ]5672 },5673 "source": "libreoffice+python"5674 },5675 {5676 "f": "=CHOOSEROWS(H1:K3,4)",5677 "py": "#VALUE!",5678 "expect": "#VALUE!",5679 "source": "libreoffice+python"5680 },5681 {5682 "f": "=CHOOSEROWS(H1:K3,0)",5683 "py": "#VALUE!",5684 "expect": "#VALUE!",5685 "source": "libreoffice+python"5686 },5687 {5688 "f": "=CHOOSECOLS(H1:K3,-5)",5689 "py": "#VALUE!",5690 "expect": "#VALUE!",5691 "source": "libreoffice+python"5692 },5693 {5694 "f": "=CHOOSECOLS(A1:D10,1,3)",5695 "py": {5696 "rows": 10,5697 "cols": 2,5698 "items": [5699 "Ann",5700 30,5701 "bob",5702 12,5703 "Cid",5704 45,5705 "ann",5706 30,5707 "Dee",5708 8,5709 "Eve",5710 45,5711 "bob",5712 12,5713 "Fay",5714 60,5715 "Gus",5716 5,5717 "Hal",5718 305719 ]5720 },5721 "expect": {5722 "rows": 10,5723 "cols": 2,5724 "items": [5725 "Ann",5726 30,5727 "bob",5728 12,5729 "Cid",5730 45,5731 "ann",5732 30,5733 "Dee",5734 8,5735 "Eve",5736 45,5737 "bob",5738 12,5739 "Fay",5740 60,5741 "Gus",5742 5,5743 "Hal",5744 305745 ]5746 },5747 "source": "libreoffice+python"5748 },5749 {5750 "f": "=EXPAND(H1:K3,4)",5751 "py": {5752 "rows": 4,5753 "cols": 4,5754 "items": [5755 1,5756 2,5757 3,5758 4,5759 5,5760 6,5761 7,5762 8,5763 9,5764 10,5765 11,5766 12,5767 "#N/A",5768 "#N/A",5769 "#N/A",5770 "#N/A"5771 ]5772 },5773 "expect": {5774 "rows": 4,5775 "cols": 4,5776 "items": [5777 1,5778 2,5779 3,5780 4,5781 5,5782 6,5783 7,5784 8,5785 9,5786 10,5787 11,5788 12,5789 "#N/A",5790 "#N/A",5791 "#N/A",5792 "#N/A"5793 ]5794 },5795 "source": "libreoffice+python"5796 },5797 {5798 "f": "=EXPAND(H1:K3,4,6)",5799 "py": {5800 "rows": 4,5801 "cols": 6,5802 "items": [5803 1,5804 2,5805 3,5806 4,5807 "#N/A",5808 "#N/A",5809 5,5810 6,5811 7,5812 8,5813 "#N/A",5814 "#N/A",5815 9,5816 10,5817 11,5818 12,5819 "#N/A",5820 "#N/A",5821 "#N/A",5822 "#N/A",5823 "#N/A",5824 "#N/A",5825 "#N/A",5826 "#N/A"5827 ]5828 },5829 "expect": {5830 "rows": 4,5831 "cols": 6,5832 "items": [5833 1,5834 2,5835 3,5836 4,5837 "#N/A",5838 "#N/A",5839 5,5840 6,5841 7,5842 8,5843 "#N/A",5844 "#N/A",5845 9,5846 10,5847 11,5848 12,5849 "#N/A",5850 "#N/A",5851 "#N/A",5852 "#N/A",5853 "#N/A",5854 "#N/A",5855 "#N/A",5856 "#N/A"5857 ]5858 },5859 "source": "libreoffice+python"5860 },5861 {5862 "f": "=EXPAND(H1:K3,3,5,0)",5863 "py": {5864 "rows": 3,5865 "cols": 5,5866 "items": [5867 1,5868 2,5869 3,5870 4,5871 0,5872 5,5873 6,5874 7,5875 8,5876 0,5877 9,5878 10,5879 11,5880 12,5881 05882 ]5883 },5884 "expect": {5885 "rows": 3,5886 "cols": 5,5887 "items": [5888 1,5889 2,5890 3,5891 4,5892 0,5893 5,5894 6,5895 7,5896 8,5897 0,5898 9,5899 10,5900 11,5901 12,5902 05903 ]5904 },5905 "source": "libreoffice+python"5906 },5907 {5908 "f": "=EXPAND(H1:K3,5,5,\"-\")",5909 "py": {5910 "rows": 5,5911 "cols": 5,5912 "items": [5913 1,5914 2,5915 3,5916 4,5917 "-",5918 5,5919 6,5920 7,5921 8,5922 "-",5923 9,5924 10,5925 11,5926 12,5927 "-",5928 "-",5929 "-",5930 "-",5931 "-",5932 "-",5933 "-",5934 "-",5935 "-",5936 "-",5937 "-"5938 ]5939 },5940 "expect": {5941 "rows": 5,5942 "cols": 5,5943 "items": [5944 1,5945 2,5946 3,5947 4,5948 "-",5949 5,5950 6,5951 7,5952 8,5953 "-",5954 9,5955 10,5956 11,5957 12,5958 "-",5959 "-",5960 "-",5961 "-",5962 "-",5963 "-",5964 "-",5965 "-",5966 "-",5967 "-",5968 "-"5969 ]5970 },5971 "source": "libreoffice+python"5972 },5973 {5974 "f": "=EXPAND(H1:K3,,6,\"x\")",5975 "py": {5976 "rows": 3,5977 "cols": 6,5978 "items": [5979 1,5980 2,5981 3,5982 4,5983 "x",5984 "x",5985 5,5986 6,5987 7,5988 8,5989 "x",5990 "x",5991 9,5992 10,5993 11,5994 12,5995 "x",5996 "x"5997 ]5998 },5999 "expect": {6000 "rows": 3,6001 "cols": 6,6002 "items": [6003 1,6004 2,6005 3,6006 4,6007 "x",6008 "x",6009 5,6010 6,6011 7,6012 8,6013 "x",6014 "x",6015 9,6016 10,6017 11,6018 12,6019 "x",6020 "x"6021 ]6022 },6023 "source": "libreoffice+python"6024 },6025 {6026 "f": "=EXPAND(H1:K3,3,4)",6027 "py": {6028 "rows": 3,6029 "cols": 4,6030 "items": [6031 1,6032 2,6033 3,6034 4,6035 5,6036 6,6037 7,6038 8,6039 9,6040 10,6041 11,6042 126043 ]6044 },6045 "expect": {6046 "rows": 3,6047 "cols": 4,6048 "items": [6049 1,6050 2,6051 3,6052 4,6053 5,6054 6,6055 7,6056 8,6057 9,6058 10,6059 11,6060 126061 ]6062 },6063 "source": "libreoffice+python"6064 },6065 {6066 "f": "=EXPAND(H1:K3,2)",6067 "py": "#VALUE!",6068 "expect": "#VALUE!",6069 "source": "libreoffice+python"6070 },6071 {6072 "f": "=EXPAND(H1:K3,3,3)",6073 "py": "#VALUE!",6074 "expect": "#VALUE!",6075 "source": "libreoffice+python"6076 },6077 {6078 "f": "=EXPAND(7,2,2)",6079 "py": {6080 "rows": 2,6081 "cols": 2,6082 "items": [6083 7,6084 "#N/A",6085 "#N/A",6086 "#N/A"6087 ]6088 },6089 "source": "python",6090 "expect": {6091 "rows": 2,6092 "cols": 2,6093 "items": [6094 7,6095 "#N/A",6096 "#N/A",6097 "#N/A"6098 ]6099 }6100 },6101 {6102 "f": "=EXPAND(F1:F5,6,2,1)",6103 "py": {6104 "rows": 6,6105 "cols": 2,6106 "items": [6107 7,6108 1,6109 3,6110 1,6111 9,6112 1,6113 3,6114 1,6115 1,6116 1,6117 1,6118 16119 ]6120 },6121 "expect": {6122 "rows": 6,6123 "cols": 2,6124 "items": [6125 7,6126 1,6127 3,6128 1,6129 9,6130 1,6131 3,6132 1,6133 1,6134 1,6135 1,6136 16137 ]6138 },6139 "source": "libreoffice+python"6140 },6141 {6142 "f": "=HSTACK(A1:A3,C1:C3)",6143 "py": {6144 "rows": 3,6145 "cols": 2,6146 "items": [6147 "Ann",6148 30,6149 "bob",6150 12,6151 "Cid",6152 456153 ]6154 },6155 "expect": {6156 "rows": 3,6157 "cols": 2,6158 "items": [6159 "Ann",6160 30,6161 "bob",6162 12,6163 "Cid",6164 456165 ]6166 },6167 "source": "libreoffice+python"6168 },6169 {6170 "f": "=HSTACK(H1:I3,F1:F5)",6171 "py": {6172 "rows": 5,6173 "cols": 3,6174 "items": [6175 1,6176 2,6177 7,6178 5,6179 6,6180 3,6181 9,6182 10,6183 9,6184 "#N/A",6185 "#N/A",6186 3,6187 "#N/A",6188 "#N/A",6189 16190 ]6191 },6192 "expect": {6193 "rows": 5,6194 "cols": 3,6195 "items": [6196 1,6197 2,6198 7,6199 5,6200 6,6201 3,6202 9,6203 10,6204 9,6205 "#N/A",6206 "#N/A",6207 3,6208 "#N/A",6209 "#N/A",6210 16211 ]6212 },6213 "source": "libreoffice+python"6214 },6215 {6216 "f": "=HSTACK(1,2,3)",6217 "py": {6218 "rows": 1,6219 "cols": 3,6220 "items": [6221 1,6222 2,6223 36224 ]6225 },6226 "expect": {6227 "rows": 1,6228 "cols": 3,6229 "items": [6230 1,6231 2,6232 36233 ]6234 },6235 "source": "libreoffice+python"6236 },6237 {6238 "f": "=HSTACK({1;2},\"x\",{3;4;5})",6239 "py": {6240 "rows": 3,6241 "cols": 3,6242 "items": [6243 1,6244 "x",6245 3,6246 2,6247 "#N/A",6248 4,6249 "#N/A",6250 "#N/A",6251 56252 ]6253 },6254 "expect": {6255 "rows": 3,6256 "cols": 3,6257 "items": [6258 1,6259 "x",6260 3,6261 2,6262 "#N/A",6263 4,6264 "#N/A",6265 "#N/A",6266 56267 ]6268 },6269 "source": "libreoffice+python"6270 },6271 {6272 "f": "=HSTACK(H1:K1)",6273 "py": {6274 "rows": 1,6275 "cols": 4,6276 "items": [6277 1,6278 2,6279 3,6280 46281 ]6282 },6283 "expect": {6284 "rows": 1,6285 "cols": 4,6286 "items": [6287 1,6288 2,6289 3,6290 46291 ]6292 },6293 "source": "libreoffice+python"6294 },6295 {6296 "f": "=HSTACK(F1:F5,F1:F5)",6297 "py": {6298 "rows": 5,6299 "cols": 2,6300 "items": [6301 7,6302 7,6303 3,6304 3,6305 9,6306 9,6307 3,6308 3,6309 1,6310 16311 ]6312 },6313 "expect": {6314 "rows": 5,6315 "cols": 2,6316 "items": [6317 7,6318 7,6319 3,6320 3,6321 9,6322 9,6323 3,6324 3,6325 1,6326 16327 ]6328 },6329 "source": "libreoffice+python"6330 },6331 {6332 "f": "=VSTACK(H1:K1,H3:K3)",6333 "py": {6334 "rows": 2,6335 "cols": 4,6336 "items": [6337 1,6338 2,6339 3,6340 4,6341 9,6342 10,6343 11,6344 126345 ]6346 },6347 "expect": {6348 "rows": 2,6349 "cols": 4,6350 "items": [6351 1,6352 2,6353 3,6354 4,6355 9,6356 10,6357 11,6358 126359 ]6360 },6361 "source": "libreoffice+python"6362 },6363 {6364 "f": "=VSTACK(H1:K2,{1,2})",6365 "py": {6366 "rows": 3,6367 "cols": 4,6368 "items": [6369 1,6370 2,6371 3,6372 4,6373 5,6374 6,6375 7,6376 8,6377 1,6378 2,6379 "#N/A",6380 "#N/A"6381 ]6382 },6383 "expect": {6384 "rows": 3,6385 "cols": 4,6386 "items": [6387 1,6388 2,6389 3,6390 4,6391 5,6392 6,6393 7,6394 8,6395 1,6396 2,6397 "#N/A",6398 "#N/A"6399 ]6400 },6401 "source": "libreoffice+python"6402 },6403 {6404 "f": "=VSTACK(1,2,3)",6405 "py": {6406 "rows": 3,6407 "cols": 1,6408 "items": [6409 1,6410 2,6411 36412 ]6413 },6414 "expect": {6415 "rows": 3,6416 "cols": 1,6417 "items": [6418 1,6419 2,6420 36421 ]6422 },6423 "source": "libreoffice+python"6424 },6425 {6426 "f": "=VSTACK({1,2,3},\"x\",{4,5})",6427 "py": {6428 "rows": 3,6429 "cols": 3,6430 "items": [6431 1,6432 2,6433 3,6434 "x",6435 "#N/A",6436 "#N/A",6437 4,6438 5,6439 "#N/A"6440 ]6441 },6442 "expect": {6443 "rows": 3,6444 "cols": 3,6445 "items": [6446 1,6447 2,6448 3,6449 "x",6450 "#N/A",6451 "#N/A",6452 4,6453 5,6454 "#N/A"6455 ]6456 },6457 "source": "libreoffice+python"6458 },6459 {6460 "f": "=VSTACK(F1:F5,H1:H3)",6461 "py": {6462 "rows": 8,6463 "cols": 1,6464 "items": [6465 7,6466 3,6467 9,6468 3,6469 1,6470 1,6471 5,6472 96473 ]6474 },6475 "expect": {6476 "rows": 8,6477 "cols": 1,6478 "items": [6479 7,6480 3,6481 9,6482 3,6483 1,6484 1,6485 5,6486 96487 ]6488 },6489 "source": "libreoffice+python"6490 },6491 {6492 "f": "=VSTACK(A1:B2,C1:D2)",6493 "py": {6494 "rows": 4,6495 "cols": 2,6496 "items": [6497 "Ann",6498 "East",6499 "bob",6500 "West",6501 30,6502 2.5,6503 12,6504 4.06505 ]6506 },6507 "expect": {6508 "rows": 4,6509 "cols": 2,6510 "items": [6511 "Ann",6512 "East",6513 "bob",6514 "West",6515 30,6516 2.5,6517 12,6518 46519 ]6520 },6521 "source": "libreoffice+python"6522 },6523 {6524 "f": "=TOCOL(M1:O3,0,FALSE)",6525 "py": {6526 "rows": 9,6527 "cols": 1,6528 "items": [6529 1,6530 null,6531 3,6532 "x",6533 "#N/A",6534 null,6535 7,6536 8,6537 "y"6538 ]6539 },6540 "expect": {6541 "rows": 9,6542 "cols": 1,6543 "items": [6544 1,6545 0,6546 3,6547 "x",6548 "#N/A",6549 0,6550 7,6551 8,6552 "y"6553 ]6554 },6555 "source": "libreoffice+python"6556 },6557 {6558 "f": "=TOROW(M1:O3,0,FALSE)",6559 "py": {6560 "rows": 1,6561 "cols": 9,6562 "items": [6563 1,6564 null,6565 3,6566 "x",6567 "#N/A",6568 null,6569 7,6570 8,6571 "y"6572 ]6573 },6574 "expect": {6575 "rows": 1,6576 "cols": 9,6577 "items": [6578 1,6579 0,6580 3,6581 "x",6582 "#N/A",6583 0,6584 7,6585 8,6586 "y"6587 ]6588 },6589 "source": "libreoffice+python"6590 },6591 {6592 "f": "=TOCOL(M1:O3,0,TRUE)",6593 "py": {6594 "rows": 9,6595 "cols": 1,6596 "items": [6597 1,6598 "x",6599 7,6600 null,6601 "#N/A",6602 8,6603 3,6604 null,6605 "y"6606 ]6607 },6608 "expect": {6609 "rows": 9,6610 "cols": 1,6611 "items": [6612 1,6613 "x",6614 7,6615 0,6616 "#N/A",6617 8,6618 3,6619 0,6620 "y"6621 ]6622 },6623 "source": "libreoffice+python"6624 },6625 {6626 "f": "=TOROW(M1:O3,0,TRUE)",6627 "py": {6628 "rows": 1,6629 "cols": 9,6630 "items": [6631 1,6632 "x",6633 7,6634 null,6635 "#N/A",6636 8,6637 3,6638 null,6639 "y"6640 ]6641 },6642 "expect": {6643 "rows": 1,6644 "cols": 9,6645 "items": [6646 1,6647 "x",6648 7,6649 0,6650 "#N/A",6651 8,6652 3,6653 0,6654 "y"6655 ]6656 },6657 "source": "libreoffice+python"6658 },6659 {6660 "f": "=TOCOL(M1:O3,1,FALSE)",6661 "py": {6662 "rows": 7,6663 "cols": 1,6664 "items": [6665 1,6666 3,6667 "x",6668 "#N/A",6669 7,6670 8,6671 "y"6672 ]6673 },6674 "expect": {6675 "rows": 7,6676 "cols": 1,6677 "items": [6678 1,6679 3,6680 "x",6681 "#N/A",6682 7,6683 8,6684 "y"6685 ]6686 },6687 "source": "libreoffice+python"6688 },6689 {6690 "f": "=TOROW(M1:O3,1,FALSE)",6691 "py": {6692 "rows": 1,6693 "cols": 7,6694 "items": [6695 1,6696 3,6697 "x",6698 "#N/A",6699 7,6700 8,6701 "y"6702 ]6703 },6704 "expect": {6705 "rows": 1,6706 "cols": 7,6707 "items": [6708 1,6709 3,6710 "x",6711 "#N/A",6712 7,6713 8,6714 "y"6715 ]6716 },6717 "source": "libreoffice+python"6718 },6719 {6720 "f": "=TOCOL(M1:O3,1,TRUE)",6721 "py": {6722 "rows": 7,6723 "cols": 1,6724 "items": [6725 1,6726 "x",6727 7,6728 "#N/A",6729 8,6730 3,6731 "y"6732 ]6733 },6734 "expect": {6735 "rows": 7,6736 "cols": 1,6737 "items": [6738 1,6739 "x",6740 7,6741 "#N/A",6742 8,6743 3,6744 "y"6745 ]6746 },6747 "source": "libreoffice+python"6748 },6749 {6750 "f": "=TOROW(M1:O3,1,TRUE)",6751 "py": {6752 "rows": 1,6753 "cols": 7,6754 "items": [6755 1,6756 "x",6757 7,6758 "#N/A",6759 8,6760 3,6761 "y"6762 ]6763 },6764 "expect": {6765 "rows": 1,6766 "cols": 7,6767 "items": [6768 1,6769 "x",6770 7,6771 "#N/A",6772 8,6773 3,6774 "y"6775 ]6776 },6777 "source": "libreoffice+python"6778 },6779 {6780 "f": "=TOCOL(M1:O3,2,FALSE)",6781 "py": {6782 "rows": 8,6783 "cols": 1,6784 "items": [6785 1,6786 null,6787 3,6788 "x",6789 null,6790 7,6791 8,6792 "y"6793 ]6794 },6795 "expect": {6796 "rows": 8,6797 "cols": 1,6798 "items": [6799 1,6800 0,6801 3,6802 "x",6803 0,6804 7,6805 8,6806 "y"6807 ]6808 },6809 "source": "libreoffice+python"6810 },6811 {6812 "f": "=TOROW(M1:O3,2,FALSE)",6813 "py": {6814 "rows": 1,6815 "cols": 8,6816 "items": [6817 1,6818 null,6819 3,6820 "x",6821 null,6822 7,6823 8,6824 "y"6825 ]6826 },6827 "expect": {6828 "rows": 1,6829 "cols": 8,6830 "items": [6831 1,6832 0,6833 3,6834 "x",6835 0,6836 7,6837 8,6838 "y"6839 ]6840 },6841 "source": "libreoffice+python"6842 },6843 {6844 "f": "=TOCOL(M1:O3,2,TRUE)",6845 "py": {6846 "rows": 8,6847 "cols": 1,6848 "items": [6849 1,6850 "x",6851 7,6852 null,6853 8,6854 3,6855 null,6856 "y"6857 ]6858 },6859 "expect": {6860 "rows": 8,6861 "cols": 1,6862 "items": [6863 1,6864 "x",6865 7,6866 0,6867 8,6868 3,6869 0,6870 "y"6871 ]6872 },6873 "source": "libreoffice+python"6874 },6875 {6876 "f": "=TOROW(M1:O3,2,TRUE)",6877 "py": {6878 "rows": 1,6879 "cols": 8,6880 "items": [6881 1,6882 "x",6883 7,6884 null,6885 8,6886 3,6887 null,6888 "y"6889 ]6890 },6891 "expect": {6892 "rows": 1,6893 "cols": 8,6894 "items": [6895 1,6896 "x",6897 7,6898 0,6899 8,6900 3,6901 0,6902 "y"6903 ]6904 },6905 "source": "libreoffice+python"6906 },6907 {6908 "f": "=TOCOL(M1:O3,3,FALSE)",6909 "py": {6910 "rows": 6,6911 "cols": 1,6912 "items": [6913 1,6914 3,6915 "x",6916 7,6917 8,6918 "y"6919 ]6920 },6921 "expect": {6922 "rows": 6,6923 "cols": 1,6924 "items": [6925 1,6926 3,6927 "x",6928 7,6929 8,6930 "y"6931 ]6932 },6933 "source": "libreoffice+python"6934 },6935 {6936 "f": "=TOROW(M1:O3,3,FALSE)",6937 "py": {6938 "rows": 1,6939 "cols": 6,6940 "items": [6941 1,6942 3,6943 "x",6944 7,6945 8,6946 "y"6947 ]6948 },6949 "expect": {6950 "rows": 1,6951 "cols": 6,6952 "items": [6953 1,6954 3,6955 "x",6956 7,6957 8,6958 "y"6959 ]6960 },6961 "source": "libreoffice+python"6962 },6963 {6964 "f": "=TOCOL(M1:O3,3,TRUE)",6965 "py": {6966 "rows": 6,6967 "cols": 1,6968 "items": [6969 1,6970 "x",6971 7,6972 8,6973 3,6974 "y"6975 ]6976 },6977 "expect": {6978 "rows": 6,6979 "cols": 1,6980 "items": [6981 1,6982 "x",6983 7,6984 8,6985 3,6986 "y"6987 ]6988 },6989 "source": "libreoffice+python"6990 },6991 {6992 "f": "=TOROW(M1:O3,3,TRUE)",6993 "py": {6994 "rows": 1,6995 "cols": 6,6996 "items": [6997 1,6998 "x",6999 7,7000 8,7001 3,7002 "y"7003 ]7004 },7005 "expect": {7006 "rows": 1,7007 "cols": 6,7008 "items": [7009 1,7010 "x",7011 7,7012 8,7013 3,7014 "y"7015 ]7016 },7017 "source": "libreoffice+python"7018 },7019 {7020 "f": "=TOCOL(H1:K3)",7021 "py": {7022 "rows": 12,7023 "cols": 1,7024 "items": [7025 1,7026 2,7027 3,7028 4,7029 5,7030 6,7031 7,7032 8,7033 9,7034 10,7035 11,7036 127037 ]7038 },7039 "expect": {7040 "rows": 12,7041 "cols": 1,7042 "items": [7043 1,7044 2,7045 3,7046 4,7047 5,7048 6,7049 7,7050 8,7051 9,7052 10,7053 11,7054 127055 ]7056 },7057 "source": "libreoffice+python"7058 },7059 {7060 "f": "=TOCOL(H1:K3,,TRUE)",7061 "py": {7062 "rows": 12,7063 "cols": 1,7064 "items": [7065 1,7066 5,7067 9,7068 2,7069 6,7070 10,7071 3,7072 7,7073 11,7074 4,7075 8,7076 127077 ]7078 },7079 "expect": {7080 "rows": 12,7081 "cols": 1,7082 "items": [7083 1,7084 5,7085 9,7086 2,7087 6,7088 10,7089 3,7090 7,7091 11,7092 4,7093 8,7094 127095 ]7096 },7097 "source": "libreoffice+python"7098 },7099 {7100 "f": "=TOROW(H1:I3)",7101 "py": {7102 "rows": 1,7103 "cols": 6,7104 "items": [7105 1,7106 2,7107 5,7108 6,7109 9,7110 107111 ]7112 },7113 "expect": {7114 "rows": 1,7115 "cols": 6,7116 "items": [7117 1,7118 2,7119 5,7120 6,7121 9,7122 107123 ]7124 },7125 "source": "libreoffice+python"7126 },7127 {7128 "f": "=TOROW(H1:I3,0,TRUE)",7129 "py": {7130 "rows": 1,7131 "cols": 6,7132 "items": [7133 1,7134 5,7135 9,7136 2,7137 6,7138 107139 ]7140 },7141 "expect": {7142 "rows": 1,7143 "cols": 6,7144 "items": [7145 1,7146 5,7147 9,7148 2,7149 6,7150 107151 ]7152 },7153 "source": "libreoffice+python"7154 },7155 {7156 "f": "=TOCOL(5)",7157 "py": 5,7158 "source": "python",7159 "expect": 57160 },7161 {7162 "f": "=WRAPROWS(F1:F5,1)",7163 "py": {7164 "rows": 5,7165 "cols": 1,7166 "items": [7167 7,7168 3,7169 9,7170 3,7171 17172 ]7173 },7174 "expect": {7175 "rows": 5,7176 "cols": 1,7177 "items": [7178 7,7179 3,7180 9,7181 3,7182 17183 ]7184 },7185 "source": "libreoffice+python"7186 },7187 {7188 "f": "=WRAPCOLS(F1:F5,1)",7189 "py": {7190 "rows": 1,7191 "cols": 5,7192 "items": [7193 7,7194 3,7195 9,7196 3,7197 17198 ]7199 },7200 "expect": {7201 "rows": 1,7202 "cols": 5,7203 "items": [7204 7,7205 3,7206 9,7207 3,7208 17209 ]7210 },7211 "source": "libreoffice+python"7212 },7213 {7214 "f": "=WRAPROWS(H1:K1,1,0)",7215 "py": {7216 "rows": 4,7217 "cols": 1,7218 "items": [7219 1,7220 2,7221 3,7222 47223 ]7224 },7225 "expect": {7226 "rows": 4,7227 "cols": 1,7228 "items": [7229 1,7230 2,7231 3,7232 47233 ]7234 },7235 "source": "libreoffice+python"7236 },7237 {7238 "f": "=WRAPCOLS(H1:K1,1,\"-\")",7239 "py": {7240 "rows": 1,7241 "cols": 4,7242 "items": [7243 1,7244 2,7245 3,7246 47247 ]7248 },7249 "expect": {7250 "rows": 1,7251 "cols": 4,7252 "items": [7253 1,7254 2,7255 3,7256 47257 ]7258 },7259 "source": "libreoffice+python"7260 },7261 {7262 "f": "=WRAPROWS(F1:F5,2)",7263 "py": {7264 "rows": 3,7265 "cols": 2,7266 "items": [7267 7,7268 3,7269 9,7270 3,7271 1,7272 "#N/A"7273 ]7274 },7275 "expect": {7276 "rows": 3,7277 "cols": 2,7278 "items": [7279 7,7280 3,7281 9,7282 3,7283 1,7284 "#N/A"7285 ]7286 },7287 "source": "libreoffice+python"7288 },7289 {7290 "f": "=WRAPCOLS(F1:F5,2)",7291 "py": {7292 "rows": 2,7293 "cols": 3,7294 "items": [7295 7,7296 9,7297 1,7298 3,7299 3,7300 "#N/A"7301 ]7302 },7303 "expect": {7304 "rows": 2,7305 "cols": 3,7306 "items": [7307 7,7308 9,7309 1,7310 3,7311 3,7312 "#N/A"7313 ]7314 },7315 "source": "libreoffice+python"7316 },7317 {7318 "f": "=WRAPROWS(H1:K1,2,0)",7319 "py": {7320 "rows": 2,7321 "cols": 2,7322 "items": [7323 1,7324 2,7325 3,7326 47327 ]7328 },7329 "expect": {7330 "rows": 2,7331 "cols": 2,7332 "items": [7333 1,7334 2,7335 3,7336 47337 ]7338 },7339 "source": "libreoffice+python"7340 },7341 {7342 "f": "=WRAPCOLS(H1:K1,2,\"-\")",7343 "py": {7344 "rows": 2,7345 "cols": 2,7346 "items": [7347 1,7348 3,7349 2,7350 47351 ]7352 },7353 "expect": {7354 "rows": 2,7355 "cols": 2,7356 "items": [7357 1,7358 3,7359 2,7360 47361 ]7362 },7363 "source": "libreoffice+python"7364 },7365 {7366 "f": "=WRAPROWS(F1:F5,3)",7367 "py": {7368 "rows": 2,7369 "cols": 3,7370 "items": [7371 7,7372 3,7373 9,7374 3,7375 1,7376 "#N/A"7377 ]7378 },7379 "expect": {7380 "rows": 2,7381 "cols": 3,7382 "items": [7383 7,7384 3,7385 9,7386 3,7387 1,7388 "#N/A"7389 ]7390 },7391 "source": "libreoffice+python"7392 },7393 {7394 "f": "=WRAPCOLS(F1:F5,3)",7395 "py": {7396 "rows": 3,7397 "cols": 2,7398 "items": [7399 7,7400 3,7401 3,7402 1,7403 9,7404 "#N/A"7405 ]7406 },7407 "expect": {7408 "rows": 3,7409 "cols": 2,7410 "items": [7411 7,7412 3,7413 3,7414 1,7415 9,7416 "#N/A"7417 ]7418 },7419 "source": "libreoffice+python"7420 },7421 {7422 "f": "=WRAPROWS(H1:K1,3,0)",7423 "py": {7424 "rows": 2,7425 "cols": 3,7426 "items": [7427 1,7428 2,7429 3,7430 4,7431 0,7432 07433 ]7434 },7435 "expect": {7436 "rows": 2,7437 "cols": 3,7438 "items": [7439 1,7440 2,7441 3,7442 4,7443 0,7444 07445 ]7446 },7447 "source": "libreoffice+python"7448 },7449 {7450 "f": "=WRAPCOLS(H1:K1,3,\"-\")",7451 "py": {7452 "rows": 3,7453 "cols": 2,7454 "items": [7455 1,7456 4,7457 2,7458 "-",7459 3,7460 "-"7461 ]7462 },7463 "expect": {7464 "rows": 3,7465 "cols": 2,7466 "items": [7467 1,7468 4,7469 2,7470 "-",7471 3,7472 "-"7473 ]7474 },7475 "source": "libreoffice+python"7476 },7477 {7478 "f": "=WRAPROWS(F1:F5,4)",7479 "py": {7480 "rows": 2,7481 "cols": 4,7482 "items": [7483 7,7484 3,7485 9,7486 3,7487 1,7488 "#N/A",7489 "#N/A",7490 "#N/A"7491 ]7492 },7493 "expect": {7494 "rows": 2,7495 "cols": 4,7496 "items": [7497 7,7498 3,7499 9,7500 3,7501 1,7502 "#N/A",7503 "#N/A",7504 "#N/A"7505 ]7506 },7507 "source": "libreoffice+python"7508 },7509 {7510 "f": "=WRAPCOLS(F1:F5,4)",7511 "py": {7512 "rows": 4,7513 "cols": 2,7514 "items": [7515 7,7516 1,7517 3,7518 "#N/A",7519 9,7520 "#N/A",7521 3,7522 "#N/A"7523 ]7524 },7525 "expect": {7526 "rows": 4,7527 "cols": 2,7528 "items": [7529 7,7530 1,7531 3,7532 "#N/A",7533 9,7534 "#N/A",7535 3,7536 "#N/A"7537 ]7538 },7539 "source": "libreoffice+python"7540 },7541 {7542 "f": "=WRAPROWS(H1:K1,4,0)",7543 "py": {7544 "rows": 1,7545 "cols": 4,7546 "items": [7547 1,7548 2,7549 3,7550 47551 ]7552 },7553 "expect": {7554 "rows": 1,7555 "cols": 4,7556 "items": [7557 1,7558 2,7559 3,7560 47561 ]7562 },7563 "source": "libreoffice+python"7564 },7565 {7566 "f": "=WRAPCOLS(H1:K1,4,\"-\")",7567 "py": {7568 "rows": 4,7569 "cols": 1,7570 "items": [7571 1,7572 2,7573 3,7574 47575 ]7576 },7577 "expect": {7578 "rows": 4,7579 "cols": 1,7580 "items": [7581 1,7582 2,7583 3,7584 47585 ]7586 },7587 "source": "libreoffice+python"7588 },7589 {7590 "f": "=WRAPROWS(F1:F5,5)",7591 "py": {7592 "rows": 1,7593 "cols": 5,7594 "items": [7595 7,7596 3,7597 9,7598 3,7599 17600 ]7601 },7602 "expect": {7603 "rows": 1,7604 "cols": 5,7605 "items": [7606 7,7607 3,7608 9,7609 3,7610 17611 ]7612 },7613 "source": "libreoffice+python"7614 },7615 {7616 "f": "=WRAPCOLS(F1:F5,5)",7617 "py": {7618 "rows": 5,7619 "cols": 1,7620 "items": [7621 7,7622 3,7623 9,7624 3,7625 17626 ]7627 },7628 "expect": {7629 "rows": 5,7630 "cols": 1,7631 "items": [7632 7,7633 3,7634 9,7635 3,7636 17637 ]7638 },7639 "source": "libreoffice+python"7640 },7641 {7642 "f": "=WRAPROWS(H1:K1,5,0)",7643 "py": {7644 "rows": 1,7645 "cols": 5,7646 "items": [7647 1,7648 2,7649 3,7650 4,7651 07652 ]7653 },7654 "expect": {7655 "rows": 1,7656 "cols": 5,7657 "items": [7658 1,7659 2,7660 3,7661 4,7662 07663 ]7664 },7665 "source": "libreoffice+python"7666 },7667 {7668 "f": "=WRAPCOLS(H1:K1,5,\"-\")",7669 "py": {7670 "rows": 5,7671 "cols": 1,7672 "items": [7673 1,7674 2,7675 3,7676 4,7677 "-"7678 ]7679 },7680 "expect": {7681 "rows": 5,7682 "cols": 1,7683 "items": [7684 1,7685 2,7686 3,7687 4,7688 "-"7689 ]7690 },7691 "source": "libreoffice+python"7692 },7693 {7694 "f": "=WRAPROWS(F1:F5,7)",7695 "py": {7696 "rows": 1,7697 "cols": 7,7698 "items": [7699 7,7700 3,7701 9,7702 3,7703 1,7704 "#N/A",7705 "#N/A"7706 ]7707 },7708 "expect": {7709 "rows": 1,7710 "cols": 7,7711 "items": [7712 7,7713 3,7714 9,7715 3,7716 1,7717 "#N/A",7718 "#N/A"7719 ]7720 },7721 "source": "libreoffice+python"7722 },7723 {7724 "f": "=WRAPCOLS(F1:F5,7)",7725 "py": {7726 "rows": 7,7727 "cols": 1,7728 "items": [7729 7,7730 3,7731 9,7732 3,7733 1,7734 "#N/A",7735 "#N/A"7736 ]7737 },7738 "expect": {7739 "rows": 7,7740 "cols": 1,7741 "items": [7742 7,7743 3,7744 9,7745 3,7746 1,7747 "#N/A",7748 "#N/A"7749 ]7750 },7751 "source": "libreoffice+python"7752 },7753 {7754 "f": "=WRAPROWS(H1:K1,7,0)",7755 "py": {7756 "rows": 1,7757 "cols": 7,7758 "items": [7759 1,7760 2,7761 3,7762 4,7763 0,7764 0,7765 07766 ]7767 },7768 "expect": {7769 "rows": 1,7770 "cols": 7,7771 "items": [7772 1,7773 2,7774 3,7775 4,7776 0,7777 0,7778 07779 ]7780 },7781 "source": "libreoffice+python"7782 },7783 {7784 "f": "=WRAPCOLS(H1:K1,7,\"-\")",7785 "py": {7786 "rows": 7,7787 "cols": 1,7788 "items": [7789 1,7790 2,7791 3,7792 4,7793 "-",7794 "-",7795 "-"7796 ]7797 },7798 "expect": {7799 "rows": 7,7800 "cols": 1,7801 "items": [7802 1,7803 2,7804 3,7805 4,7806 "-",7807 "-",7808 "-"7809 ]7810 },7811 "source": "libreoffice+python"7812 },7813 {7814 "f": "=WRAPROWS(H1:K3,2)",7815 "py": "#VALUE!",7816 "expect": "#VALUE!",7817 "source": "libreoffice+python"7818 },7819 {7820 "f": "=WRAPROWS(F1:F5,0)",7821 "py": "#VALUE!",7822 "expect": "#VALUE!",7823 "source": "libreoffice+python"7824 },7825 {7826 "f": "=WRAPCOLS(H1:K3,2)",7827 "py": "#VALUE!",7828 "expect": "#VALUE!",7829 "source": "libreoffice+python"7830 },7831 {7832 "f": "=TAKE(SORT(A1:D10,3,-1),3)",7833 "py": {7834 "rows": 3,7835 "cols": 4,7836 "items": [7837 "Fay",7838 "South",7839 60,7840 0.75,7841 "Cid",7842 "East",7843 45,7844 1.25,7845 "Eve",7846 "East",7847 45,7848 1.257849 ]7850 },7851 "expect": {7852 "rows": 3,7853 "cols": 4,7854 "items": [7855 "Fay",7856 "South",7857 60,7858 0.75,7859 "Cid",7860 "East",7861 45,7862 1.25,7863 "Eve",7864 "East",7865 45,7866 1.257867 ]7868 },7869 "source": "libreoffice+python"7870 },7871 {7872 "f": "=SORT(FILTER(A1:D10,B1:B10=\"East\"),4)",7873 "py": {7874 "rows": 4,7875 "cols": 4,7876 "items": [7877 "Cid",7878 "East",7879 45,7880 1.25,7881 "Eve",7882 "East",7883 45,7884 1.25,7885 "Hal",7886 "East",7887 30,7888 2.0,7889 "Ann",7890 "East",7891 30,7892 2.57893 ]7894 },7895 "expect": {7896 "rows": 4,7897 "cols": 4,7898 "items": [7899 "Cid",7900 "East",7901 45,7902 1.25,7903 "Eve",7904 "East",7905 45,7906 1.25,7907 "Hal",7908 "East",7909 30,7910 2,7911 "Ann",7912 "East",7913 30,7914 2.57915 ]7916 },7917 "source": "libreoffice+python"7918 },7919 {7920 "f": "=HSTACK(UNIQUE(B1:B10),SEQUENCE(5))",7921 "py": {7922 "rows": 5,7923 "cols": 2,7924 "items": [7925 "East",7926 1,7927 "West",7928 2,7929 "North",7930 3,7931 "South",7932 4,7933 "#N/A",7934 57935 ]7936 },7937 "expect": {7938 "rows": 5,7939 "cols": 2,7940 "items": [7941 "East",7942 1,7943 "West",7944 2,7945 "North",7946 3,7947 "South",7948 4,7949 "#N/A",7950 57951 ]7952 },7953 "source": "libreoffice+python"7954 },7955 {7956 "f": "=CHOOSECOLS(SORTBY(A1:D10,D1:D10,-1),1,4)",7957 "py": {7958 "rows": 10,7959 "cols": 2,7960 "items": [7961 "Gus",7962 12.0,7963 "Dee",7964 9.5,7965 "bob",7966 4.5,7967 "bob",7968 4.0,7969 "ann",7970 3.0,7971 "Ann",7972 2.5,7973 "Hal",7974 2.0,7975 "Cid",7976 1.25,7977 "Eve",7978 1.25,7979 "Fay",7980 0.757981 ]7982 },7983 "expect": {7984 "rows": 10,7985 "cols": 2,7986 "items": [7987 "Gus",7988 12,7989 "Dee",7990 9.5,7991 "bob",7992 4.5,7993 "bob",7994 4,7995 "ann",7996 3,7997 "Ann",7998 2.5,7999 "Hal",8000 2,8001 "Cid",8002 1.25,8003 "Eve",8004 1.25,8005 "Fay",8006 0.758007 ]8008 },8009 "source": "libreoffice+python"8010 },8011 {8012 "f": "=TOCOL(TAKE(H1:K3,2,2))",8013 "py": {8014 "rows": 4,8015 "cols": 1,8016 "items": [8017 1,8018 2,8019 5,8020 68021 ]8022 },8023 "expect": {8024 "rows": 4,8025 "cols": 1,8026 "items": [8027 1,8028 2,8029 5,8030 68031 ]8032 },8033 "source": "libreoffice+python"8034 },8035 {8036 "f": "=SUM(TAKE(H1:K3,-1))",8037 "py": 42,8038 "expect": 42,8039 "source": "libreoffice+python"8040 },8041 {8042 "f": "=ROWS(UNIQUE(B1:B10))",8043 "py": 4,8044 "expect": 4,8045 "source": "libreoffice+python"8046 },8047 {8048 "f": "=TRANSPOSE(SEQUENCE(2,3))",8049 "py": {8050 "rows": 3,8051 "cols": 2,8052 "items": [8053 1,8054 4,8055 2,8056 5,8057 3,8058 68059 ]8060 },8061 "expect": {8062 "rows": 3,8063 "cols": 2,8064 "items": [8065 1,8066 4,8067 2,8068 5,8069 3,8070 68071 ]8072 },8073 "source": "libreoffice+python"8074 },8075 {8076 "f": "=SUM(DROP(SEQUENCE(10),3))",8077 "py": 49,8078 "expect": 49,8079 "source": "libreoffice+python"8080 },8081 {8082 "f": "=MAP(F1:F5,LAMBDA(x,x*2))",8083 "py": {8084 "rows": 5,8085 "cols": 1,8086 "items": [8087 14,8088 6,8089 18,8090 6,8091 28092 ]8093 },8094 "source": "python",8095 "expect": {8096 "rows": 5,8097 "cols": 1,8098 "items": [8099 14,8100 6,8101 18,8102 6,8103 28104 ]8105 }8106 },8107 {8108 "f": "=MAP(H1:K3,LAMBDA(x,x^2))",8109 "py": {8110 "rows": 3,8111 "cols": 4,8112 "items": [8113 1,8114 4,8115 9,8116 16,8117 25,8118 36,8119 49,8120 64,8121 81,8122 100,8123 121,8124 1448125 ]8126 },8127 "source": "python",8128 "expect": {8129 "rows": 3,8130 "cols": 4,8131 "items": [8132 1,8133 4,8134 9,8135 16,8136 25,8137 36,8138 49,8139 64,8140 81,8141 100,8142 121,8143 1448144 ]8145 }8146 },8147 {8148 "f": "=MAP(C1:C10,D1:D10,LAMBDA(u,p,u*p))",8149 "py": {8150 "rows": 10,8151 "cols": 1,8152 "items": [8153 75.0,8154 48.0,8155 56.25,8156 90.0,8157 76.0,8158 56.25,8159 54.0,8160 45.0,8161 60.0,8162 60.08163 ]8164 },8165 "source": "python",8166 "expect": {8167 "rows": 10,8168 "cols": 1,8169 "items": [8170 75.0,8171 48.0,8172 56.25,8173 90.0,8174 76.0,8175 56.25,8176 54.0,8177 45.0,8178 60.0,8179 60.08180 ]8181 }8182 },8183 {8184 "f": "=MAP(H1:K3,LAMBDA(x,IF(x>6,\"big\",\"small\")))",8185 "py": {8186 "rows": 3,8187 "cols": 4,8188 "items": [8189 "small",8190 "small",8191 "small",8192 "small",8193 "small",8194 "small",8195 "big",8196 "big",8197 "big",8198 "big",8199 "big",8200 "big"8201 ]8202 },8203 "source": "python",8204 "expect": {8205 "rows": 3,8206 "cols": 4,8207 "items": [8208 "small",8209 "small",8210 "small",8211 "small",8212 "small",8213 "small",8214 "big",8215 "big",8216 "big",8217 "big",8218 "big",8219 "big"8220 ]8221 }8222 },8223 {8224 "f": "=MAP({1,2,3},{10,20,30},{100,200,300},LAMBDA(a,b,c,a+b+c))",8225 "py": {8226 "rows": 1,8227 "cols": 3,8228 "items": [8229 111,8230 222,8231 3338232 ]8233 },8234 "source": "python",8235 "expect": {8236 "rows": 1,8237 "cols": 3,8238 "items": [8239 111,8240 222,8241 3338242 ]8243 }8244 },8245 {8246 "f": "=MAP(5,LAMBDA(x,x+1))",8247 "py": 6,8248 "source": "python",8249 "expect": 68250 },8251 {8252 "f": "=MAP({1,2},LAMBDA(x,SEQUENCE(2)))",8253 "py": {8254 "rows": 1,8255 "cols": 2,8256 "items": [8257 "#VALUE!",8258 "#VALUE!"8259 ]8260 },8261 "source": "python",8262 "expect": {8263 "rows": 1,8264 "cols": 2,8265 "items": [8266 "#VALUE!",8267 "#VALUE!"8268 ]8269 }8270 },8271 {8272 "f": "=MAP({1,2,3},LAMBDA(x,y,x+y))",8273 "py": "#VALUE!",8274 "source": "python",8275 "expect": "#VALUE!"8276 },8277 {8278 "f": "=MAP({4,0,2},LAMBDA(x,8/x))",8279 "py": {8280 "rows": 1,8281 "cols": 3,8282 "items": [8283 2,8284 "#DIV/0!",8285 48286 ]8287 },8288 "source": "python",8289 "expect": {8290 "rows": 1,8291 "cols": 3,8292 "items": [8293 2,8294 "#DIV/0!",8295 48296 ]8297 }8298 },8299 {8300 "f": "=REDUCE(0,F1:F5,LAMBDA(a,v,a+v))",8301 "py": 23,8302 "source": "python",8303 "expect": 238304 },8305 {8306 "f": "=REDUCE(1,H1:K3,LAMBDA(a,v,a*v))",8307 "py": 479001600,8308 "source": "python",8309 "expect": 4790016008310 },8311 {8312 "f": "=REDUCE(0,C1:C10,LAMBDA(a,v,IF(v>a,v,a)))",8313 "py": 60,8314 "source": "python",8315 "expect": 608316 },8317 {8318 "f": "=REDUCE(\"\",A1:A3,LAMBDA(a,v,a&v))",8319 "py": "AnnbobCid",8320 "source": "python",8321 "expect": "AnnbobCid"8322 },8323 {8324 "f": "=REDUCE(100,{1,2,3},LAMBDA(a,v,a-v))",8325 "py": 94,8326 "source": "python",8327 "expect": 948328 },8329 {8330 "f": "=REDUCE(,{2,3,4},LAMBDA(a,v,a*v))",8331 "py": 24,8332 "source": "python",8333 "expect": 248334 },8335 {8336 "f": "=REDUCE(0,H1:K3,LAMBDA(a,v,a+IF(v>6,1,0)))",8337 "py": 6,8338 "source": "python",8339 "expect": 68340 },8341 {8342 "f": "=REDUCE(0,{1,2,3},LAMBDA(a,v,VSTACK(a,v)))",8343 "py": {8344 "rows": 4,8345 "cols": 1,8346 "items": [8347 0,8348 1,8349 2,8350 38351 ]8352 },8353 "source": "python",8354 "expect": {8355 "rows": 4,8356 "cols": 1,8357 "items": [8358 0,8359 1,8360 2,8361 38362 ]8363 }8364 },8365 {8366 "f": "=SCAN(0,F1:F5,LAMBDA(a,v,a+v))",8367 "py": {8368 "rows": 5,8369 "cols": 1,8370 "items": [8371 7,8372 10,8373 19,8374 22,8375 238376 ]8377 },8378 "source": "python",8379 "expect": {8380 "rows": 5,8381 "cols": 1,8382 "items": [8383 7,8384 10,8385 19,8386 22,8387 238388 ]8389 }8390 },8391 {8392 "f": "=SCAN(1,{1,2,3,4,5},LAMBDA(a,v,a*v))",8393 "py": {8394 "rows": 1,8395 "cols": 5,8396 "items": [8397 1,8398 2,8399 6,8400 24,8401 1208402 ]8403 },8404 "source": "python",8405 "expect": {8406 "rows": 1,8407 "cols": 5,8408 "items": [8409 1,8410 2,8411 6,8412 24,8413 1208414 ]8415 }8416 },8417 {8418 "f": "=SCAN(0,H1:K3,LAMBDA(a,v,a+v))",8419 "py": {8420 "rows": 3,8421 "cols": 4,8422 "items": [8423 1,8424 3,8425 6,8426 10,8427 15,8428 21,8429 28,8430 36,8431 45,8432 55,8433 66,8434 788435 ]8436 },8437 "source": "python",8438 "expect": {8439 "rows": 3,8440 "cols": 4,8441 "items": [8442 1,8443 3,8444 6,8445 10,8446 15,8447 21,8448 28,8449 36,8450 45,8451 55,8452 66,8453 788454 ]8455 }8456 },8457 {8458 "f": "=SCAN(,{2,3,4},LAMBDA(a,v,a*v))",8459 "py": {8460 "rows": 1,8461 "cols": 3,8462 "items": [8463 2,8464 6,8465 248466 ]8467 },8468 "source": "python",8469 "expect": {8470 "rows": 1,8471 "cols": 3,8472 "items": [8473 2,8474 6,8475 248476 ]8477 }8478 },8479 {8480 "f": "=SCAN(\"\",{\"a\",\"b\",\"c\"},LAMBDA(a,v,a&v))",8481 "py": {8482 "rows": 1,8483 "cols": 3,8484 "items": [8485 "a",8486 "ab",8487 "abc"8488 ]8489 },8490 "source": "python",8491 "expect": {8492 "rows": 1,8493 "cols": 3,8494 "items": [8495 "a",8496 "ab",8497 "abc"8498 ]8499 }8500 },8501 {8502 "f": "=SCAN(0,C1:C10,LAMBDA(a,v,MAX(a,v)))",8503 "py": {8504 "rows": 10,8505 "cols": 1,8506 "items": [8507 30,8508 30,8509 45,8510 45,8511 45,8512 45,8513 45,8514 60,8515 60,8516 608517 ]8518 },8519 "source": "python",8520 "expect": {8521 "rows": 10,8522 "cols": 1,8523 "items": [8524 30,8525 30,8526 45,8527 45,8528 45,8529 45,8530 45,8531 60,8532 60,8533 608534 ]8535 }8536 },8537 {8538 "f": "=BYROW(H1:K3,LAMBDA(r,SUM(r)))",8539 "py": {8540 "rows": 3,8541 "cols": 1,8542 "items": [8543 10,8544 26,8545 428546 ]8547 },8548 "source": "python",8549 "expect": {8550 "rows": 3,8551 "cols": 1,8552 "items": [8553 10,8554 26,8555 428556 ]8557 }8558 },8559 {8560 "f": "=BYROW(H1:K3,LAMBDA(r,MAX(r)-MIN(r)))",8561 "py": {8562 "rows": 3,8563 "cols": 1,8564 "items": [8565 3,8566 3,8567 38568 ]8569 },8570 "source": "python",8571 "expect": {8572 "rows": 3,8573 "cols": 1,8574 "items": [8575 3,8576 3,8577 38578 ]8579 }8580 },8581 {8582 "f": "=BYROW(C1:D10,LAMBDA(r,INDEX(r,1,1)*INDEX(r,1,2)))",8583 "py": {8584 "rows": 10,8585 "cols": 1,8586 "items": [8587 75.0,8588 48.0,8589 56.25,8590 90.0,8591 76.0,8592 56.25,8593 54.0,8594 45.0,8595 60.0,8596 60.08597 ]8598 },8599 "source": "python",8600 "expect": {8601 "rows": 10,8602 "cols": 1,8603 "items": [8604 75.0,8605 48.0,8606 56.25,8607 90.0,8608 76.0,8609 56.25,8610 54.0,8611 45.0,8612 60.0,8613 60.08614 ]8615 }8616 },8617 {8618 "f": "=BYROW({1,2;3,4},LAMBDA(r,SUM(r)))",8619 "py": {8620 "rows": 2,8621 "cols": 1,8622 "items": [8623 3,8624 78625 ]8626 },8627 "source": "python",8628 "expect": {8629 "rows": 2,8630 "cols": 1,8631 "items": [8632 3,8633 78634 ]8635 }8636 },8637 {8638 "f": "=BYROW(H1:K3,LAMBDA(r,r))",8639 "py": {8640 "rows": 3,8641 "cols": 1,8642 "items": [8643 "#VALUE!",8644 "#VALUE!",8645 "#VALUE!"8646 ]8647 },8648 "source": "python",8649 "expect": {8650 "rows": 3,8651 "cols": 1,8652 "items": [8653 "#VALUE!",8654 "#VALUE!",8655 "#VALUE!"8656 ]8657 }8658 },8659 {8660 "f": "=BYROW(M1:O3,LAMBDA(r,COUNTA(r)))",8661 "py": {8662 "rows": 3,8663 "cols": 1,8664 "items": [8665 2,8666 2,8667 38668 ]8669 },8670 "source": "python",8671 "expect": {8672 "rows": 3,8673 "cols": 1,8674 "items": [8675 2,8676 2,8677 38678 ]8679 }8680 },8681 {8682 "f": "=BYCOL(H1:K3,LAMBDA(c,SUM(c)))",8683 "py": {8684 "rows": 1,8685 "cols": 4,8686 "items": [8687 15,8688 18,8689 21,8690 248691 ]8692 },8693 "source": "python",8694 "expect": {8695 "rows": 1,8696 "cols": 4,8697 "items": [8698 15,8699 18,8700 21,8701 248702 ]8703 }8704 },8705 {8706 "f": "=BYCOL(H1:K3,LAMBDA(c,AVERAGE(c)))",8707 "py": {8708 "rows": 1,8709 "cols": 4,8710 "items": [8711 5,8712 6,8713 7,8714 88715 ]8716 },8717 "source": "python",8718 "expect": {8719 "rows": 1,8720 "cols": 4,8721 "items": [8722 5,8723 6,8724 7,8725 88726 ]8727 }8728 },8729 {8730 "f": "=BYCOL(C1:D10,LAMBDA(c,MAX(c)))",8731 "py": {8732 "rows": 1,8733 "cols": 2,8734 "items": [8735 60,8736 12.08737 ]8738 },8739 "source": "python",8740 "expect": {8741 "rows": 1,8742 "cols": 2,8743 "items": [8744 60,8745 12.08746 ]8747 }8748 },8749 {8750 "f": "=BYCOL({1,2;3,4},LAMBDA(c,COUNT(c)))",8751 "py": {8752 "rows": 1,8753 "cols": 2,8754 "items": [8755 2,8756 28757 ]8758 },8759 "source": "python",8760 "expect": {8761 "rows": 1,8762 "cols": 2,8763 "items": [8764 2,8765 28766 ]8767 }8768 },8769 {8770 "f": "=MAKEARRAY(3,4,LAMBDA(r,c,r*10+c))",8771 "py": {8772 "rows": 3,8773 "cols": 4,8774 "items": [8775 11,8776 12,8777 13,8778 14,8779 21,8780 22,8781 23,8782 24,8783 31,8784 32,8785 33,8786 348787 ]8788 },8789 "source": "python",8790 "expect": {8791 "rows": 3,8792 "cols": 4,8793 "items": [8794 11,8795 12,8796 13,8797 14,8798 21,8799 22,8800 23,8801 24,8802 31,8803 32,8804 33,8805 348806 ]8807 }8808 },8809 {8810 "f": "=MAKEARRAY(2,2,LAMBDA(r,c,IF(r=c,1,0)))",8811 "py": {8812 "rows": 2,8813 "cols": 2,8814 "items": [8815 1,8816 0,8817 0,8818 18819 ]8820 },8821 "source": "python",8822 "expect": {8823 "rows": 2,8824 "cols": 2,8825 "items": [8826 1,8827 0,8828 0,8829 18830 ]8831 }8832 },8833 {8834 "f": "=MAKEARRAY(1,1,LAMBDA(r,c,42))",8835 "py": 42,8836 "source": "python",8837 "expect": 428838 },8839 {8840 "f": "=MAKEARRAY(4,1,LAMBDA(r,c,INDEX(F1:F5,r)*2))",8841 "py": {8842 "rows": 4,8843 "cols": 1,8844 "items": [8845 14,8846 6,8847 18,8848 68849 ]8850 },8851 "source": "python",8852 "expect": {8853 "rows": 4,8854 "cols": 1,8855 "items": [8856 14,8857 6,8858 18,8859 68860 ]8861 }8862 },8863 {8864 "f": "=MAKEARRAY(0,2,LAMBDA(r,c,1))",8865 "py": "#VALUE!",8866 "source": "python",8867 "expect": "#VALUE!"8868 },8869 {8870 "f": "=SUM(MAP(SEQUENCE(10),LAMBDA(k,k*k)))",8871 "py": 385,8872 "source": "python",8873 "expect": 3858874 },8875 {8876 "f": "=LET(f,LAMBDA(x,x*3),MAP({1,2,3},f))",8877 "py": {8878 "rows": 1,8879 "cols": 3,8880 "items": [8881 3,8882 6,8883 98884 ]8885 },8886 "source": "python",8887 "expect": {8888 "rows": 1,8889 "cols": 3,8890 "items": [8891 3,8892 6,8893 98894 ]8895 }8896 },8897 {8898 "f": "=BYROW(FILTER(H1:K3,H1:H3>1),LAMBDA(r,SUM(r)))",8899 "py": {8900 "rows": 2,8901 "cols": 1,8902 "items": [8903 26,8904 428905 ]8906 },8907 "source": "python",8908 "expect": {8909 "rows": 2,8910 "cols": 1,8911 "items": [8912 26,8913 428914 ]8915 }8916 }8917 ]8918}