semvec/pypi-packages huggingface dataset:
eda-nijin 0.4.0
Default template for PDM package
License: MIT
Requires Python: >=3.10

# eda-nijin
 ![LGTM](https://i.lgtm.fun/2vtu.png)

### USE
```bash
$ pip install eda-nijin
$ eda-nijin
Usage: eda-nijin [OPTIONS] KEYWORD
Try 'eda-nijin --help' for help.
╭─ Error ─────────────────────────────────────────────────────────────────────────────────────────────╮
│ Missing argument 'KEYWORD'.                                                                         │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────╯
$ eda-nijin --help
 Usage: eda-nijin [OPTIONS] KEYWORD

╭─ Arguments ──────────────────────────────────────────────────────────────────────────────╮
│ *    keyword      TEXT  [default: None] [required]                                       │
╰──────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────────────────╮
│ --asc            --no-asc                     [default: no-asc]                          │
│ --rcnt                               INTEGER  [default: 12]                              │
│ --keyword-sum    --no-keyword-sum             [default: no-keyword-sum]                  │
│ --help                                        Show this message and exit.                │
╰──────────────────────────────────────────────────────────────────────────────────────────╯

$ eda-nijin 자유
president  count
      윤보선      1
      최규하     14
      박근혜    111
      노무현    230
      전두환    242
      이명박    262
      김영삼    274
      문재인    275
      김대중    305
      노태우    399
      이승만    438
      박정희    513
총 합계:12

$ eda-nijin 자유 --asc --rcnt 3 --keyword-sum
president  count  keyword_sum
      윤보선      1            6
      최규하     14           28
      박근혜    111          250
총 합계:3

```
### DEV
```bash
$ source .venv/bin/activate
$ pdm add pandas
$ pdm add -dG eda jupyter
```
### EDA
- run jupyterlab
```
$ jupyter lab
```
### REF
- [install jupyterlab](https://jupyter.org/install)
- https://pypi.org/project/president-speech/
eda-ji 0.3.2
Default template for PDM package
License: MIT
Requires Python: >=3.10

# eda-ji

![LGTM](https://i.lgtm.fun/1yei.gif)
presidents ranked by mentions of ('You Want to know') in their speeches!
+ Possible to output the total count of how many times the keyword was mentioned in all speeches by each president.
### USE
```
$ pip install eda-ji
$ python
>>> from eda-ji.cli import group_by_count
>>> group_by_count(keyword, bool, n) # 오름차순/내림차순, 상위 n개 출력


eda-ji --help 참고

$ eda-ji keyword --asc(오름차순) --rnct (상위 n개) --keyword-sum(연설 속 키워드 총 합계)
or --no-ascen(내림차순)
```

### DEV
```bash
$ source .venv/bin/activate
$ pdm add pandas
$ pdm add -dG eda jupyterlab
$ pdm add president-speech
$ pdm add typer

$ vi pyproject.toml
$ pdm install

$ vi src/eda_ji/cli.py
$ eda-ji - test

$ vi tests/test_first.py
$ pytest

$ git add
$ git commit
$ git push
$ pdm publish
```

### EDA
- run jupyterlab
```
$ jupyter lab
```

### Ref
- [install jupyterlab](https://jupyter.org/install)
- [install president](https://pypi.org/project/president-speech/)
- [Typer](https://pypi.org/project/typer)