mirror of
https://github.com/karma-riuk/crab.git
synced 2025-07-05 13:38:12 +02:00
removed pandarallel since it not useful anymore
This commit is contained in:
@ -2,8 +2,6 @@ import pandas as pd
|
|||||||
import argparse, os, sys, subprocess
|
import argparse, os, sys, subprocess
|
||||||
from tqdm import tqdm
|
from tqdm import tqdm
|
||||||
import shutil
|
import shutil
|
||||||
from pandarallel import pandarallel
|
|
||||||
import multiprocessing
|
|
||||||
|
|
||||||
tqdm.pandas()
|
tqdm.pandas()
|
||||||
|
|
||||||
@ -129,8 +127,6 @@ def clone_repos(file: str, dest: str, force: bool =False, verbose: bool = False)
|
|||||||
dest (str): The name of the root directory in which to download the repos
|
dest (str): The name of the root directory in which to download the repos
|
||||||
verbose (bool): If `True`, outputs detailed process information. Defaults to `False`.
|
verbose (bool): If `True`, outputs detailed process information. Defaults to `False`.
|
||||||
"""
|
"""
|
||||||
pandarallel.initialize(nb_workers=min(50, multiprocessing.cpu_count()-1), progress_bar=True, verbose=2 if verbose else 0)
|
|
||||||
|
|
||||||
if verbose: print(f"Reading CSV file {file}")
|
if verbose: print(f"Reading CSV file {file}")
|
||||||
df = pd.read_csv(file)
|
df = pd.read_csv(file)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user