Skip to main content

: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
  • ...

Metadata

Release files for china 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for china 1.0.1
File Size Uploaded
china-1.0.1.tar.gz 48.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for china 1.0.1
File Interpreter ABI Platform
china-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 671.3 kB

Release files / china-1.0.1.tar.gz

Download URL china-1.0.1.tar.gz
Size 48.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0f99bdc40d6337afe13c52c3229b8d7b38c509b2a6f4160a67e299195116e60e
BLAKE2b-256 checksum
How to use checksums
e89e8cd1a1c8eb639c75dd528580fd870a60e620e1c5886a998e43afa1adb556
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / china-1.0.1-py3-none-any.whl

Download URL china-1.0.1-py3-none-any.whl
Size 622.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea6ed0cb7f8a303c8b73c8cfcc85994f4c9af4e84371359dda657d173f889e01
BLAKE2b-256 checksum
How to use checksums
33bade43980dcec263ffdb9c1b40a2e7b745006dd06628de6f4698f5989b90b5
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page