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
china-1.0.1.tar.gz
(48.5 kB
view details)
Built Distribution
china-1.0.1-py3-none-any.whl
(622.8 kB
view details)
File details
Details for the file china-1.0.1.tar.gz
.
File metadata
- Download URL: china-1.0.1.tar.gz
- Upload date:
- Size: 48.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1.post20180923 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f99bdc40d6337afe13c52c3229b8d7b38c509b2a6f4160a67e299195116e60e |
|
MD5 | e0d9124e7174365704e493c511a4a7f6 |
|
BLAKE2b-256 | e89e8cd1a1c8eb639c75dd528580fd870a60e620e1c5886a998e43afa1adb556 |
File details
Details for the file china-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: china-1.0.1-py3-none-any.whl
- Upload date:
- Size: 622.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1.post20180923 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea6ed0cb7f8a303c8b73c8cfcc85994f4c9af4e84371359dda657d173f889e01 |
|
MD5 | 6ae24a1338d172c42252c580d0be30ec |
|
BLAKE2b-256 | 33bade43980dcec263ffdb9c1b40a2e7b745006dd06628de6f4698f5989b90b5 |