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
iWork-0.0.3.tar.gz
(68.7 kB
view details)
Built Distribution
iWork-0.0.3-py3-none-any.whl
(2.4 MB
view details)
File details
Details for the file iWork-0.0.3.tar.gz
.
File metadata
- Download URL: iWork-0.0.3.tar.gz
- Upload date:
- Size: 68.7 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.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4677ce374362b41f26c659e87a709d08cc62dc2b14d9b4e89bf2259cc915e2a1 |
|
MD5 | ab615a2f7a3188ef83af72eee1025eb1 |
|
BLAKE2b-256 | 514dc07d6fbf343d4862b72055f041d22793fdd6c833e306fc4927a937703742 |
File details
Details for the file iWork-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: iWork-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.4 MB
- 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.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 456a4f31ca7a22e4a948459e58ae7859ff09c527f99267c38cab18a4c4e54785 |
|
MD5 | 9b8cc9b04aecd32ddc49872c65d7369c |
|
BLAKE2b-256 | b597f7fae71790d0bc203ec7138f31d6883014c2265530b17440c3cdbbfa494e |