:rocket: Yuan :facepunch:
数据不是创造规律,而是展示那些原本的规律
https://www.kaggle.com/c/elo-merchant-category-recommendation/discussion/82055#479196 Competitions
Install
pip install Yuan
Usage
from yuan.pipe import *
@X
def xfunc1(x):
_ = x.split()
print(_)
return _
@X
def xfunc2(x):
_ = '>>'.join(x)
print(_)
return _
'I am very like a linux pipe' | xfunc1 | xfunc2
-
xtqdm -
xfilter / xmap / xsort / xreduce
iterable | xfilter(lambda x: len(x) > 1) | xmap(str.upper) | xsort | xreduce(lambda x, y: x + '-' + y)
'AM-LIKE-LINUX-PIPE-VERY'
xsummary
iterable | xsummary
counts 7
uniques 7
missing 0
missing_perc 0%
types unique
Name: iterable, dtype: object
- ...
Metadata
Release files for tql 0.0.1560759555
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tql-0.0.1560759555.tar.gz | 70.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tql-0.0.1560759555-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.4 MB
Release files / tql-0.0.1560759555.tar.gz
| Download URL | tql-0.0.1560759555.tar.gz |
|---|---|
| Size | 70.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b169a29af0dde7918de9e7c2a14ad93441583e43141663d12a7949559c2888f
|
|
BLAKE2b-256 checksum How to use checksums |
a1435ee570a52562f421ae5f1e7cf6995cdbfecc5b6dc63baebdc371cfb4775f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1.post20180923 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6
|
Release files / tql-0.0.1560759555-py3-none-any.whl
| Download URL | tql-0.0.1560759555-py3-none-any.whl |
|---|---|
| Size | 2.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84da88ca62292c53ab41d7b972909b12d6179f563ed5e90bd7301797f95349b0
|
|
BLAKE2b-256 checksum How to use checksums |
fb50fadec5f0d9a33d31796fa91f57f954fe364ac2eae8524b98b54b7421ea3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1.post20180923 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6
|