description
Project description
: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
- ...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tql-0.0.1560759555.tar.gz
(70.6 kB
view details)
Built Distribution
File details
Details for the file tql-0.0.1560759555.tar.gz
.
File metadata
- Download URL: tql-0.0.1560759555.tar.gz
- Upload date:
- Size: 70.6 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b169a29af0dde7918de9e7c2a14ad93441583e43141663d12a7949559c2888f |
|
MD5 | efa50916ede82a7fb8147970bb666a23 |
|
BLAKE2b-256 | a1435ee570a52562f421ae5f1e7cf6995cdbfecc5b6dc63baebdc371cfb4775f |
File details
Details for the file tql-0.0.1560759555-py3-none-any.whl
.
File metadata
- Download URL: tql-0.0.1560759555-py3-none-any.whl
- Upload date:
- Size: 2.3 MB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84da88ca62292c53ab41d7b972909b12d6179f563ed5e90bd7301797f95349b0 |
|
MD5 | b21094a488b3962ed007b00eb08c2f3e |
|
BLAKE2b-256 | fb50fadec5f0d9a33d31796fa91f57f954fe364ac2eae8524b98b54b7421ea3c |