qutePandas 1.1.3__py3-none-any.whl → 1.1.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- qutePandas/__init__.py +1 -1
- qutePandas/apply/apply.py +1 -7
- {qutepandas-1.1.3.dist-info → qutepandas-1.1.4.dist-info}/METADATA +2 -3
- {qutepandas-1.1.3.dist-info → qutepandas-1.1.4.dist-info}/RECORD +6 -6
- {qutepandas-1.1.3.dist-info → qutepandas-1.1.4.dist-info}/WHEEL +0 -0
- {qutepandas-1.1.3.dist-info → qutepandas-1.1.4.dist-info}/top_level.txt +0 -0
qutePandas/__init__.py
CHANGED
qutePandas/apply/apply.py
CHANGED
|
@@ -2,10 +2,6 @@ import pykx as kx
|
|
|
2
2
|
import pandas as pd
|
|
3
3
|
from ..utils import _ensure_q_table, _handle_return
|
|
4
4
|
|
|
5
|
-
_VECTORIZED_AXIS1 = {
|
|
6
|
-
'sum': '{sum (0^) each value flip x}',
|
|
7
|
-
}
|
|
8
|
-
|
|
9
5
|
|
|
10
6
|
def apply(df, func, axis=0, return_type='q'):
|
|
11
7
|
"""
|
|
@@ -43,9 +39,7 @@ def apply(df, func, axis=0, return_type='q'):
|
|
|
43
39
|
return pd.Series(ret) if return_type == 'p' else ret
|
|
44
40
|
|
|
45
41
|
if isinstance(func, str):
|
|
46
|
-
if axis == 1
|
|
47
|
-
result = kx.q(_VECTORIZED_AXIS1[func], q_table)
|
|
48
|
-
elif axis == 1:
|
|
42
|
+
if axis == 1:
|
|
49
43
|
result = kx.q(f"{{({func}) each x}}", q_table)
|
|
50
44
|
else:
|
|
51
45
|
result = kx.q(f"{{({func}) each flip x}}", q_table)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: qutePandas
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.4
|
|
4
4
|
Summary: A pandas-like library for kdb+/q using pykx
|
|
5
5
|
Home-page: https://ishapatro.github.io/qutePandas/
|
|
6
6
|
Author: Isha Patro
|
|
@@ -73,10 +73,9 @@ The source code for this project is available on GitHub at:
|
|
|
73
73
|
|
|
74
74
|
## Contributing
|
|
75
75
|
|
|
76
|
-
Contributions are welcome! Please read our [
|
|
76
|
+
Contributions are welcome! Please read our [CONTRIBUTING.md](https://github.com/IshaPatro/qutePandas/blob/main/CONTRIBUTING.md) for more information.
|
|
77
77
|
|
|
78
78
|
## License
|
|
79
|
-
|
|
80
79
|
MIT License
|
|
81
80
|
|
|
82
81
|
## Author
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
qutePandas/__init__.py,sha256=
|
|
1
|
+
qutePandas/__init__.py,sha256=KV1uGPmLxRwtPbDfCY3BKJ3j-yZ-nmgNLwrwufKiSK8,3143
|
|
2
2
|
qutePandas/utils.py,sha256=X0GODOBxuAFOtjjFb6IGlzjDhhrkwH_6ErIMypiFhUM,1026
|
|
3
3
|
qutePandas/apply/__init__.py,sha256=tdjeqTQI6jH530lTmpd9dkUPese6B22uI2P4ATKoGzc,92
|
|
4
|
-
qutePandas/apply/apply.py,sha256=
|
|
4
|
+
qutePandas/apply/apply.py,sha256=OqeNwgoD1G5Y6PK7G_2CX7fswq4_Fl0YDDaqWI7O-a4,2275
|
|
5
5
|
qutePandas/apply/apply_col.py,sha256=h6nAsAXLIC4WcMD-amW3bXkaNEe30SgKEBfUr3eKTng,1597
|
|
6
6
|
qutePandas/cleaning/__init__.py,sha256=6tRzTPgCEumZ7c_TvsMit3pRxZhdzf1Pd4y23ozv_2k,204
|
|
7
7
|
qutePandas/cleaning/dropna.py,sha256=SGIPg8vk4PB1jtnH8hDComuMz8omdraJhOPzKTRiUgI,739
|
|
@@ -29,7 +29,7 @@ qutePandas/transformation/__init__.py,sha256=ECPmFXZq-uh5ajkgAVQbdc8flVzrcwkhEqw
|
|
|
29
29
|
qutePandas/transformation/cast.py,sha256=VD8D0gPs9GJX52bqu_LKt7BHU69Iv-scOq-E2Q_MGQU,2226
|
|
30
30
|
qutePandas/transformation/drop_col.py,sha256=4hdGjitDbYSfxj-4jo73NmTa2qKed-NjGj0jGBfiANY,1509
|
|
31
31
|
qutePandas/transformation/rename.py,sha256=MwWjbhaZCUdQgkObaMPIB8fUY240x_EdD41cwszCa4o,948
|
|
32
|
-
qutepandas-1.1.
|
|
33
|
-
qutepandas-1.1.
|
|
34
|
-
qutepandas-1.1.
|
|
35
|
-
qutepandas-1.1.
|
|
32
|
+
qutepandas-1.1.4.dist-info/METADATA,sha256=0j4Q58iB3fzobYjehYUnws3rHJyx4CeZM0p_kyuS5rg,2887
|
|
33
|
+
qutepandas-1.1.4.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
34
|
+
qutepandas-1.1.4.dist-info/top_level.txt,sha256=O_6KkoxW8KjgZX5o7sYwYVb8XPtNBA7PRSTE08qda1k,11
|
|
35
|
+
qutepandas-1.1.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|