From eae9bfdaef48747f8ab80989109c871dc79f642c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20L=C3=B3pez-Gonz=C3=A1lez?= Date: Wed, 17 Jan 2024 16:03:50 +0100 Subject: [PATCH] Reorders cols calculation at preparse_computations --- src/pykx/pandas_api/pandas_meta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pykx/pandas_api/pandas_meta.py b/src/pykx/pandas_api/pandas_meta.py index 39668d5..3fface0 100644 --- a/src/pykx/pandas_api/pandas_meta.py +++ b/src/pykx/pandas_api/pandas_meta.py @@ -50,9 +50,9 @@ def _get_bool_only_subtable(tab): def preparse_computations(tab, axis=0, skipna=True, numeric_only=False, bool_only=False): - cols = q('cols', tab) if 'Keyed' in str(type(tab)): tab = q('{(keys x) _ 0!x}', tab) + cols = q('cols', tab) if numeric_only: (tab, cols) = _get_numeric_only_subtable_with_bools(tab) if bool_only: