2023.09.25 01:07 AM
pykx.Table
objects which requires conscious review and testing for adoptionpykx.license
module containing license installation, expiry and validation functionality, see here for more information.pykx.random
module providing functionality for random data generation>>> kx.random.random(5. 1.0) pykx.FloatVector(pykx.q('0.1959057 0.06460555 0.9550039 0.4991214 0.3207941')) >>> kx.random.random([2, 3], ['a', 'b', 'c'], seed=123) pykx.List(pykx.q(' c c c a b b '))
pykx.register
module providing users the ability to specify custom Python to q conversions>>> import pykx as kx >>> def complex_conversion(data): ... return kx.q([data.real, data.imag]) >>> kx.register.py_toq(complex, complex_conversion) >>> kx.toq(complex(1, 2)) pykx.FloatVector(pykx.q('1 2f'))
apply
and groupby
methods to PyKX Tables>>> import pykx as kx >>> N = 1000000 >>> tab = kx.Table(data = { ... 'price': kx.random.random(N, 10.0), ... 'sym': kx.random.random(N, ['a', 'b', 'c']) ... }) >>> tab.groupby('sym').apply(kx.q.sum) pykx.KeyedTable(pykx.q(' sym| price ---| -------- a | 166759.4 b | 166963.6 c | 166444.1 '))
pykx.Foreign
objects using pickle no longer results in segmentation faultpykx.q.{select/exec/update/delete}
now return appropriate error message and suggestion to use qsql
equivalent functionality.pykx.version
denoting PyKX version installed.pykx.debugInfo
returning debugging information about a users PyKX installation.pykx.qcallable
and .pykx.pycallable
function mapping to embedPy equivalent logic.pykx.*eval
functions would leak memory on each invocation.pykx.pyexec
would result in segmentation fault on repeated invocationQARGS='--unlicensed'
or QARGS='--licensed'
operate correctly following regression in 2.0.0OSError
would be raised when close()
was called on an IPC connection which has already disconnected server side2023.09.25 04:37 PM
Thanks for sharing the latest release notes for PyKX @rocuinneagain!
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.