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.

Source Distribution

x-plan-0.0.1.tar.gz (12.6 kB view hashes)

Uploaded Source

Built Distribution

x_plan-0.0.1-py3-none-any.whl (38.0 kB 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