https://learninghub.kx.com/forums/topic/pykx-2-2-0-released
Hi all,PyKX 2.2.0 has been released Full details on the release can be found here. Examples of each of these changes are included in the release note and highlighted in the video attached (1.5x speed suggested).Additions:
- Aggregation
aggmethod to PyKX Tables and GroupbyTable objects, documentation available here. - Users can now run
min,max,median,mode,sumandmeancalculations directly on PyKX Vector objects - Pythonic assignment of objects to PyKX Vector and List objects now supported
- Pythonic assignment and updates to dictionaries now supported
- Addition of
nullandinfproperties forpykx.Atomobjects allowing for Pythonic retrieval of nulls and infinities - Addition of
appendandextendmethods topykx.*Vectorandpykx.Listobjects - Addition of
debugkeyword argument to the__call__method onEmbeddedQandQConnectionobjects to provide backtraces onqcode executed locally and remotely. - Users can now use the environment variables
PYKX_UNLICENSED="true"orPYKX_LICENSED="true"set as part of configuration within their.pykx-configfile to allowunlicensedorlicensedmode to be the default behaviour on initialisation for example: - Added feature to extract individual elements of both
TimestampAtomandTimestampVectorin a pythonic manner.
Fixes and improvements:
- Fix to allow users to use Python functions when operating on a
pykx.GroupbyTablewith anapplyfunction - Failure to initialise PyKX with
exporembedqlicense errors will now prompt users to ask if they wish to download an appropriate license following expiry or use of an invalid license - PyKX sets
PYKX_EXECUTABLEto use when loading embedded q to prevent errors if launched using a different Python executable than that which will be found inPATH PyKXReimportnow additionally unsets/resets:PYKX_SKIP_UNDERQ,PYKX_EXECUTABLE,PYKX_DIR- When attempting to deserialize unsupported byte representations
pykx.deserializewould result in a segmentation fault, this has been updated such that an error message is now raised.
Note:
- Given changes to released numpy artifacts the Linux x86 release of PyKX has been delayed for Python 3.11, we will update the released artifacts once a solution has been found