/
q-funcs.rst
1189 lines (510 loc) · 21.7 KB
/
q-funcs.rst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
.. py:function:: q.abs
absolute value
The abs function computes the absolute value of its argument. Null is returned if the argument is null.
>>> q.abs([-1, 0, 1, None])
k('1 0 1 0N')
See also `abs on code.kx.com <http://code.kx.com/q/ref/arith-integer/#abs>`_.
.. py:function:: q.acos
arc cosine
See also `acos on code.kx.com <http://code.kx.com/q/ref/trig/#acos>`_.
.. py:function:: q.aj
as-of join
See also `aj on code.kx.com <http://code.kx.com/q/ref/joins/#aj-aj0-asof-join>`_.
.. py:function:: q.aj0
as-of join
See also `aj on code.kx.com <http://code.kx.com/q/ref/joins/#aj-aj0-asof-join>`_.
.. py:function:: q.all
all nonzero
See also `all on code.kx.com <http://code.kx.com/q/ref/logic/#all>`_.
.. py:function:: q.and_
and
See also `and on code.kx.com <http://code.kx.com/q/ref/logic/#and-minimum>`_.
.. py:function:: q.any
any item is non-zero
See also `any on code.kx.com <http://code.kx.com/q/ref/logic/#any>`_.
.. py:function:: q.asc
ascending sort
See also `asc on code.kx.com <http://code.kx.com/q/ref/sort/#asc>`_.
.. py:function:: q.asin
arc sine
See also `asin on code.kx.com <http://code.kx.com/q/ref/trig/#asin>`_.
.. py:function:: q.asof
as-of operator
See also `asof on code.kx.com <http://code.kx.com/q/ref/joins/#asof>`_.
.. py:function:: q.atan
arc tangent
See also `atan on code.kx.com <http://code.kx.com/q/ref/trig/#atan>`_.
.. py:function:: q.attr
attributes
See also `attr on code.kx.com <http://code.kx.com/q/ref/metadata/#attr>`_.
.. py:function:: q.avg
arithmetic mean
See also `avg on code.kx.com <http://code.kx.com/q/ref/stats-aggregates/#avg-average>`_.
.. py:function:: q.avgs
running averages
See also `avgs on code.kx.com <http://code.kx.com/q/ref/stats-aggregates/#avgs-averages>`_.
.. py:function:: q.bin
binary search
See also `bin on code.kx.com <http://code.kx.com/q/ref/search/#bin-binr>`_.
.. py:function:: q.binr
binary search
See also `bin on code.kx.com <http://code.kx.com/q/ref/search/#bin-binr>`_.
.. py:function:: q.ceiling
lowest integer above
See also `ceiling on code.kx.com <http://code.kx.com/q/ref/arith-integer/#ceiling>`_.
.. py:function:: q.cols
column names of a table
See also `cols on code.kx.com <http://code.kx.com/q/ref/metadata/#cols>`_.
.. py:function:: q.cor
correlation
See also `cor on code.kx.com <http://code.kx.com/q/ref/stats-aggregates/#cor-correlation>`_.
.. py:function:: q.cos
cosine
See also `cos on code.kx.com <http://code.kx.com/q/ref/trig/#cos>`_.
.. py:function:: q.count
number of items
See also `count on code.kx.com <http://code.kx.com/q/ref/lists/#count>`_.
.. py:function:: q.cov
statistical covariance
See also `cov on code.kx.com <http://code.kx.com/q/ref/stats-aggregates/#cov-covariance>`_.
.. py:function:: q.cross
cross product
See also `cross on code.kx.com <http://code.kx.com/q/ref/lists/#cross>`_.
.. py:function:: q.csv
comma delimiter
See also `csv on code.kx.com <http://code.kx.com/q/ref/filewords/#csv>`_.
.. py:function:: q.cut
cut
See also `cut on code.kx.com <http://code.kx.com/q/ref/lists/#_-cut>`_.
.. py:function:: q.deltas
differences between consecutive pairs
See also `deltas on code.kx.com <http://code.kx.com/q/ref/arith-integer/#deltas>`_.
.. py:function:: q.desc
descending sort
See also `desc on code.kx.com <http://code.kx.com/q/ref/sort/#desc>`_.
.. py:function:: q.dev
standard deviation
See also `dev on code.kx.com <http://code.kx.com/q/ref/stats-aggregates/#dev-standard-deviation>`_.
.. py:function:: q.differ
flag differences in consecutive pairs
See also `differ on code.kx.com <http://code.kx.com/q/ref/comparison/#differ>`_.
.. py:function:: q.distinct
unique items
See also `distinct on code.kx.com <http://code.kx.com/q/ref/search/#distinct>`_.
.. py:function:: q.div
integer division
See also `div on code.kx.com <http://code.kx.com/q/ref/arith-integer/#div>`_.
.. py:function:: q.dsave
save global tables to disk
See also `dsave on code.kx.com <http://code.kx.com/q/ref/filewords/#dsave>`_.
.. py:function:: q.ej
equi-join
See also `ej on code.kx.com <http://code.kx.com/q/ref/joins/#ej-equi-join>`_.
.. py:function:: q.ema
exponentially-weighted moving average
See also `ema on code.kx.com <http://code.kx.com/q/ref/stats-moving/#ema>`_.
.. py:function:: q.ema
exponentially-weighted moving average
See also `ema on code.kx.com <http://code.kx.com/q/ref/stats-moving/#ema>`_.
.. py:function:: q.enlist
arguments as a list
See also `enlist on code.kx.com <http://code.kx.com/q/ref/lists/#enlist>`_.
.. py:function:: q.eval
evaluate a parse tree
See also `eval on code.kx.com <http://code.kx.com/q/ref/parsetrees/#eval>`_.
.. py:function:: q.except_
left argument without items in right argument
See also `except on code.kx.com <http://code.kx.com/q/ref/select/#except>`_.
.. py:function:: q.exp
power of e
See also `exp on code.kx.com <http://code.kx.com/q/ref/arith-float/#exp>`_.
.. py:function:: q.fby
filter-by
See also `fby on code.kx.com <http://code.kx.com/q/ref/qsql/#fby>`_.
.. py:function:: q.fills
forward-fill nulls
See also `fills on code.kx.com <http://code.kx.com/q/ref/lists/#fills>`_.
.. py:function:: q.first
first item
See also `first on code.kx.com <http://code.kx.com/q/ref/select/#first>`_.
.. py:function:: q.fkeys
foreign-key columns mapped to their tables
See also `fkeys on code.kx.com <http://code.kx.com/q/ref/metadata/#fkeys>`_.
.. py:function:: q.flip
transpose
See also `flip on code.kx.com <http://code.kx.com/q/ref/lists/#flip>`_.
.. py:function:: q.floor
greatest integer less than argument
See also `floor on code.kx.com <http://code.kx.com/q/ref/arith-integer/#floor>`_.
.. py:function:: q.get
get
See also `get on code.kx.com <http://code.kx.com/q/ref/dotz/#zpg-get>`_.
.. py:function:: q.getenv
value of an environment variable
See also `getenv on code.kx.com <http://code.kx.com/q/ref/os/#getenv>`_.
.. py:function:: q.group
dictionary of distinct items
See also `group on code.kx.com <http://code.kx.com/q/ref/dictsandtables/#group>`_.
.. py:function:: q.gtime
UTC timestamp
See also `gtime on code.kx.com <http://code.kx.com/q/ref/os/#gtime>`_.
.. py:function:: q.hclose
close a file or process
See also `hclose on code.kx.com <http://code.kx.com/q/ref/filewords/#hclose>`_.
.. py:function:: q.hcount
size of a file
See also `hcount on code.kx.com <http://code.kx.com/q/ref/filewords/#hcount>`_.
.. py:function:: q.hdel
delete a file
See also `hdel on code.kx.com <http://code.kx.com/q/ref/filewords/#hdel>`_.
.. py:function:: q.hopen
open a file
See also `hopen on code.kx.com <http://code.kx.com/q/ref/filewords/#hopen>`_.
.. py:function:: q.hsym
convert symbol to filename or IP address
See also `hsym on code.kx.com <http://code.kx.com/q/ref/filewords/#hsym>`_.
.. py:function:: q.iasc
indices of ascending sort
See also `iasc on code.kx.com <http://code.kx.com/q/ref/sort/#iasc>`_.
.. py:function:: q.idesc
indices of descending sort
See also `idesc on code.kx.com <http://code.kx.com/q/ref/sort/#idesc>`_.
.. py:function:: q.ij
inner join
See also `ij on code.kx.com <http://code.kx.com/q/ref/joins/#ij-inner-join>`_.
.. py:function:: q.ijf
The ijf function.
See also `ijf on code.kx.com <http://code.kx.com/q/ref/joins/#ij-inner-join>`_.
.. py:function:: q.in_
membership
See also `in on code.kx.com <http://code.kx.com/q/ref/search/#in>`_.
.. py:function:: q.insert
append records to a table
See also `insert on code.kx.com <http://code.kx.com/q/ref/qsql/#insert>`_.
.. py:function:: q.inter
items common to both arguments
See also `inter on code.kx.com <http://code.kx.com/q/ref/select/#inter>`_.
.. py:function:: q.inv
matrix inverse
See also `inv on code.kx.com <http://code.kx.com/q/ref/matrixes/#inv>`_.
.. py:function:: q.key
key
See also `key on code.kx.com <http://code.kx.com/q/ref/dictsandtables/#key>`_.
.. py:function:: q.keys
names of a table's columns
See also `keys on code.kx.com <http://code.kx.com/q/ref/metadata/#keys>`_.
.. py:function:: q.last
last item
See also `last on code.kx.com <http://code.kx.com/q/ref/select/#last>`_.
.. py:function:: q.like
pattern matching
See also `like on code.kx.com <http://code.kx.com/q/ref/strings/#like>`_.
.. py:function:: q.lj
left join
See also `lj on code.kx.com <http://code.kx.com/q/ref/joins/#lj-ljf-left-join>`_.
.. py:function:: q.ljf
left join
See also `ljf on code.kx.com <http://code.kx.com/q/ref/joins/#lj-ljf-left-join>`_.
.. py:function:: q.load
load binary data
See also `load on code.kx.com <http://code.kx.com/q/ref/filewords/#load>`_.
.. py:function:: q.log
natural logarithm
See also `log on code.kx.com <http://code.kx.com/q/ref/arith-float/#log>`_.
.. py:function:: q.lower
lower case
See also `lower on code.kx.com <http://code.kx.com/q/ref/strings/#lower>`_.
.. py:function:: q.lsq
least squares matrix divide
See also `lsq on code.kx.com <http://code.kx.com/q/ref/matrixes/#lsq>`_.
.. py:function:: q.ltime
local timestamp
See also `ltime on code.kx.com <http://code.kx.com/q/ref/os/#ltime>`_.
.. py:function:: q.ltrim
function remove leading spaces
See also `ltrim on code.kx.com <http://code.kx.com/q/ref/strings/#ltrim>`_.
.. py:function:: q.mavg
moving average
See also `mavg on code.kx.com <http://code.kx.com/q/ref/stats-moving/#mavg>`_.
.. py:function:: q.max
maximum
See also `max on code.kx.com <http://code.kx.com/q/ref/stats-aggregates/#max-maximum>`_.
.. py:function:: q.maxs
maxima of preceding items
See also `maxs on code.kx.com <http://code.kx.com/q/ref/stats-aggregates/#maxs-maximums>`_.
.. py:function:: q.mcount
moving count
See also `mcount on code.kx.com <http://code.kx.com/q/ref/stats-moving/#mcount>`_.
.. py:function:: q.md5
MD5 hash
See also `md5 on code.kx.com <http://code.kx.com/q/ref/strings/#md5>`_.
.. py:function:: q.mdev
moving deviation
See also `mdev on code.kx.com <http://code.kx.com/q/ref/stats-moving/#mdev>`_.
.. py:function:: q.med
median
See also `med on code.kx.com <http://code.kx.com/q/ref/stats-aggregates/#med-median>`_.
.. py:function:: q.meta
metadata of a table
See also `meta on code.kx.com <http://code.kx.com/q/ref/metadata/#meta>`_.
.. py:function:: q.min
minimum
See also `min on code.kx.com <http://code.kx.com/q/ref/stats-aggregates/#min-minimum>`_.
.. py:function:: q.mins
minimum of preceding items
See also `mins on code.kx.com <http://code.kx.com/q/ref/stats-aggregates/#mins-minimums>`_.
.. py:function:: q.mmax
moving maxima
See also `mmax on code.kx.com <http://code.kx.com/q/ref/stats-moving/#mmax>`_.
.. py:function:: q.mmin
moving minima
See also `mmin on code.kx.com <http://code.kx.com/q/ref/stats-moving/#mmin>`_.
.. py:function:: q.mmu
mmu
See also `mmu on code.kx.com <http://code.kx.com/q/ref/matrixes/#mmu>`_.
.. py:function:: q.mod
remainder
See also `mod on code.kx.com <http://code.kx.com/q/ref/arith-integer/#mod>`_.
.. py:function:: q.msum
moving sum
See also `msum on code.kx.com <http://code.kx.com/q/ref/stats-moving/#msum>`_.
.. py:function:: q.neg
negate
See also `neg on code.kx.com <http://code.kx.com/q/ref/arith-integer/#neg>`_.
.. py:function:: q.next
next items
See also `next on code.kx.com <http://code.kx.com/q/ref/select/#next>`_.
.. py:function:: q.not_
not
See also `not on code.kx.com <http://code.kx.com/q/ref/comparison/#six-comparison-operators>`_.
.. py:function:: q.null
null
See also `null on code.kx.com <http://code.kx.com/q/ref/unclassified/#null>`_.
.. py:function:: q.or_
or
See also `or on code.kx.com <http://code.kx.com/q/ref/logic/#or-maximum>`_.
.. py:function:: q.parse
parse a string
See also `parse on code.kx.com <http://code.kx.com/q/ref/parsetrees/#parse>`_.
.. py:function:: q.peach
peach
See also `peach on code.kx.com <http://code.kx.com/q/ref/dotz/#zpd-peach-handles>`_.
.. py:function:: q.pj
plus join
See also `pj on code.kx.com <http://code.kx.com/q/ref/joins/#pj-plus-join>`_.
.. py:function:: q.prd
product
See also `prd on code.kx.com <http://code.kx.com/q/ref/arith-float/#prd>`_.
.. py:function:: q.prds
cumulative products
See also `prds on code.kx.com <http://code.kx.com/q/ref/arith-float/#prds>`_.
.. py:function:: q.prev
previous items
See also `prev on code.kx.com <http://code.kx.com/q/ref/select/#prev>`_.
.. py:function:: q.prior
prior
See also `prior on code.kx.com <http://code.kx.com/q/ref/control/#prior>`_.
.. py:function:: q.rand
random number
See also `rand on code.kx.com <http://code.kx.com/q/ref/random/#rand>`_.
.. py:function:: q.rank
grade up
See also `rank on code.kx.com <http://code.kx.com/q/ref/sort/#rank>`_.
.. py:function:: q.ratios
ratios of consecutive pairs
See also `ratios on code.kx.com <http://code.kx.com/q/ref/arith-float/#ratios>`_.
.. py:function:: q.raze
join items
See also `raze on code.kx.com <http://code.kx.com/q/ref/lists/#raze>`_.
.. py:function:: q.read0
read file as lines
See also `read0 on code.kx.com <http://code.kx.com/q/ref/filewords/#read0>`_.
.. py:function:: q.read1
read file as bytes
See also `read1 on code.kx.com <http://code.kx.com/q/ref/filewords/#read1>`_.
.. py:function:: q.reciprocal
reciprocal of a number
See also `reciprocal on code.kx.com <http://code.kx.com/q/ref/arith-float/#reciprocal>`_.
.. py:function:: q.reval
variation of eval
See also `reval on code.kx.com <http://code.kx.com/q/ref/parsetrees/#reval>`_.
.. py:function:: q.reverse
reverse the order of items
See also `reverse on code.kx.com <http://code.kx.com/q/ref/lists/#reverse>`_.
.. py:function:: q.rload
load a splayed table
See also `rload on code.kx.com <http://code.kx.com/q/ref/filewords/#rload>`_.
.. py:function:: q.rotate
rotate items
See also `rotate on code.kx.com <http://code.kx.com/q/ref/lists/#rotate>`_.
.. py:function:: q.rsave
rsave
See also `rsave on code.kx.com <http://code.kx.com/q/ref/filewords/#rsave>`_.
.. py:function:: q.rtrim
remove trailing spaces
See also `rtrim on code.kx.com <http://code.kx.com/q/ref/strings/#rtrim>`_.
.. py:function:: q.save
save global data to file
See also `save on code.kx.com <http://code.kx.com/q/ref/filewords/#save>`_.
.. py:function:: q.scov
statistical covariance
See also `scov on code.kx.com <http://code.kx.com/q/ref/stats-aggregates/#scov-statistical-covariance>`_.
.. py:function:: q.scov
statistical covariance
See also `scov on code.kx.com <http://code.kx.com/q/ref/stats-aggregates/#scov-statistical-covariance>`_.
.. py:function:: q.sdev
statistical standard deviation
See also `sdev on code.kx.com <http://code.kx.com/q/ref/stats-aggregates/#sdev-statistical-standard-deviation>`_.
.. py:function:: q.sdev
statistical standard deviation
See also `sdev on code.kx.com <http://code.kx.com/q/ref/stats-aggregates/#sdev-statistical-standard-deviation>`_.
.. py:function:: q.set
set
See also `set on code.kx.com <http://code.kx.com/q/ref/dotz/#zps-set>`_.
.. py:function:: q.setenv
set an environment variable
See also `setenv on code.kx.com <http://code.kx.com/q/ref/os/#setenv>`_.
.. py:function:: q.show
format to the console
See also `show on code.kx.com <http://code.kx.com/q/ref/devtools/#show>`_.
.. py:function:: q.signum
sign of its argument/s
See also `signum on code.kx.com <http://code.kx.com/q/ref/arith-integer/#signum>`_.
.. py:function:: q.sin
sine
See also `sin on code.kx.com <http://code.kx.com/q/ref/trig/#sin>`_.
.. py:function:: q.sqrt
square root
See also `sqrt on code.kx.com <http://code.kx.com/q/ref/arith-float/#sqrt>`_.
.. py:function:: q.ss
string search
See also `ss on code.kx.com <http://code.kx.com/q/ref/strings/#ss>`_.
.. py:function:: q.ssr
string search and replace
See also `ssr on code.kx.com <http://code.kx.com/q/ref/strings/#ssr>`_.
.. py:function:: q.string
cast to string
See also `string on code.kx.com <http://code.kx.com/q/ref/casting/#string>`_.
.. py:function:: q.sublist
sublist of a list
See also `sublist on code.kx.com <http://code.kx.com/q/ref/select/#sublist>`_.
.. py:function:: q.sum
sum of a list
See also `sum on code.kx.com <http://code.kx.com/q/ref/arith-integer/#sum>`_.
.. py:function:: q.sums
cumulative sums of a list
See also `sums on code.kx.com <http://code.kx.com/q/ref/arith-integer/#sums>`_.
.. py:function:: q.sv
consolidate
See also `sv on code.kx.com <http://code.kx.com/q/ref/lists/#sv>`_.
.. py:function:: q.svar
statistical variance
See also `svar on code.kx.com <http://code.kx.com/q/ref/stats-aggregates/#svar-statistical-variance>`_.
.. py:function:: q.svar
statistical variance
See also `svar on code.kx.com <http://code.kx.com/q/ref/stats-aggregates/#svar-statistical-variance>`_.
.. py:function:: q.system
system
See also `system on code.kx.com <http://code.kx.com/q/ref/syscmds>`_.
.. py:function:: q.tables
sorted list of tables
See also `tables on code.kx.com <http://code.kx.com/q/ref/metadata/#tables>`_.
.. py:function:: q.tan
tangent
See also `tan on code.kx.com <http://code.kx.com/q/ref/trig/#tan>`_.
.. py:function:: q.til
integers up to x
See also `til on code.kx.com <http://code.kx.com/q/ref/arith-integer/#til>`_.
.. py:function:: q.trim
remove leading and trailing spaces
See also `trim on code.kx.com <http://code.kx.com/q/ref/strings/#trim>`_.
.. py:function:: q.type
data type
See also `type on code.kx.com <http://code.kx.com/q/ref/metadata/#type>`_.
.. py:function:: q.uj
union join
See also `uj on code.kx.com <http://code.kx.com/q/ref/joins/#uj-union-join>`_.
.. py:function:: q.ujf
The ujf function.
See also `ujf on code.kx.com <http://code.kx.com/q/ref/joins/#uj-union-join>`_.