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

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file Yuan-1.0.9.tar.gz.

File metadata

  • Download URL: Yuan-1.0.9.tar.gz
  • Upload date:
  • Size: 54.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for Yuan-1.0.9.tar.gz
Algorithm Hash digest
SHA256 bda8011aa3bc6ea9871c66cb574d4c6c802aac63e4def033dd2735c8e0fa711d
MD5 eab8bcbc02ae4687925d41be748cf83b
BLAKE2b-256 b98970ec2f14431194867387fe92840b2b1e3db89b9885dcc6b3ca9395ff23f9

See more details on using hashes here.

File details

Details for the file Yuan-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: Yuan-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for Yuan-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 1644a944dd327ab9865b77a9ea2b6b8d34bf7b6cc90a129df44820d67140e74d
MD5 4f38feb91b40428b12907adc0d67b786
BLAKE2b-256 ebfb7c006edc143be0ae171d703ef6a38c98ccb4196d15aa1816570383e8d209

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.9 This release

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page