Skip to main content

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

    tqdm

  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Yuan-1.0.9.tar.gz (54.5 kB view hashes)

Uploaded Source

Built Distribution

Yuan-1.0.9-py3-none-any.whl (1.3 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page