| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3d7dd66 commit 8d00db0
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -427,6 +427,7 @@ RUN pip install flashtext && \ | |||
| 427 | 427 | pip install jax==0.2.12 jaxlib==0.1.64 && \ | |
| 428 | 428 | # ipympl adds interactive widget support for matplotlib | |
| 429 | 429 | pip install ipympl==0.7.0 && \ | |
| 430 | + pip install pandarallel && \ | ||
| 430 | 431 | /tmp/clean-layer.sh | |
| 431 | 432 | ||
| 432 | 433 | # Download base easyocr models. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,11 @@ | |||
| 1 | + import unittest | ||
| 2 | + | ||
| 3 | + import pandas as pd | ||
| 4 | + from pandarallel import pandarallel | ||
| 5 | + | ||
| 6 | + pandarallel.initialize() | ||
| 7 | + | ||
| 8 | + class TestPandarallel(unittest.TestCase): | ||
| 9 | + def test_pandarallel(self): | ||
| 10 | + data = pd.read_csv("/input/tests/data/train.csv") | ||
| 11 | + data['label_converted'] = data['label'].parallel_apply(lambda x: x+1) | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments