Skip to main content

description

Project description

:rocket: X-plan :facepunch:


Install

pip install xplan

from xplan.iterable 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

  • xseries

  • xdataframe

iterable | xseries
iterable | xdataframe

0        I
1       am
2     very
3     like
4        a
5    linux
6     pipe
Name: iterable, dtype: object
  • xcounts
  • xsummary
iterable | xcounts

counts               7
uniques              7
missing              0
missing_perc        0%
types           unique
Name: iterable, dtype: object

iterable | xsummary

am       1
very     1
linux    1
like     1
I        1
a        1
pipe     1
Name: iterable, dtype: int64
  • xsort
  • xmap
  • xreduce
  • xfilter
iterable | xfilter(lambda x: len(x) > 1) | xmap(str.upper) | xsort | xreduce(lambda x, y: x + '-' + y)

'AM-LIKE-LINUX-PIPE-VERY'
  • ...

Project details


Download files

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

Files for x-plan, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size x_plan-0.0.1-py3-none-any.whl (38.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size x-plan-0.0.1.tar.gz (12.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page