I want to find a way to crop/limit the number of rows in the output when querying my IPC connection using a namespace function.
Using pykx, I am calling result = connection(*params) with example usage connection(‘getTrades’, np.datetime64(‘2025-07-04’), ‘APPL’) where getTrades is a function and the date and sym are parameters.
I want to impose a limit (e.g. of 1000 rows) on my q output so that conversion to a pandas df is not too slow. The functionality would be similar to calling 1000 sublist getTrades[np.datetime64(‘2025-07-04’); ‘APPL’].
Is there a way to do this?
Thanks