Metadata-Version: 2.1
Name: x-plan
Version: 0.0.1
Summary: description
Home-page: https://github.com/Jie-Yuan/X-plan
Author: JieYuan
Author-email: 313303303@qq.com
Maintainer: JieYuan
Maintainer-email: 313303303@qq.com
License: MIT
Keywords: X-plan,nlp,utils
Platform: all
Classifier: Development Status :: 4 - Beta
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: Implementation
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.5
Description-Content-Type: text/markdown
Requires-Dist: tqdm
Requires-Dist: sklearn
Requires-Dist: pandas

<h1 align = "center">:rocket: X-plan :facepunch:</h1>

---

## Install
```
pip install xplan
```

## `from xplan.iterable import *`
```python
@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](pic/tqdm.png)

- xseries
- xdataframe
```python
iterable | xseries
iterable | xdataframe

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

- xcounts
- xsummary
```python
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
```python
iterable | xfilter(lambda x: len(x) > 1) | xmap(str.upper) | xsort | xreduce(lambda x, y: x + '-' + y)

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



