Skip to content

Commit 8798a14

Browse files
committed
fix(eda): scipy version issue
1 parent 8d4e0a0 commit 8798a14

File tree

5 files changed

+141
-132
lines changed

5 files changed

+141
-132
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
poetry run pyright --version
4747
4848
- name: Check if the code is formatted
49-
run: poetry run black --check --quiet dataprep
49+
run: poetry run black --check dataprep
5050

5151
- name: Type check the project
5252
run: poetry run pyright dataprep || true

dataprep/clean/clean_country.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def _format_country(
271271
return result, 2 if val != result else 3
272272

273273

274-
@lru_cache(maxsize=2 ** 20)
274+
@lru_cache(maxsize=2**20)
275275
def _check_country(country: str, input_formats: Tuple[str, ...], strict: bool, clean: bool) -> Any:
276276
"""
277277
Finds the index of the given country in the DATA dataframe.
@@ -322,7 +322,7 @@ def _check_country(country: str, input_formats: Tuple[str, ...], strict: bool, c
322322
return (None, "unknown") if clean else False
323323

324324

325-
@lru_cache(maxsize=2 ** 20)
325+
@lru_cache(maxsize=2**20)
326326
def _check_fuzzy_dist(country: str, fuzzy_dist: int) -> Any:
327327
"""
328328
A match is found if a country has an edit distance <= fuzzy_dist

dataprep/eda/diff/render.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ def format_num_stats(data: Dict[str, List[Any]]) -> Dict[str, Dict[str, List[Any
574574
descriptive = {
575575
"Mean": data["mean"],
576576
"Standard Deviation": data["std"],
577-
"Variance": [std ** 2 for std in data["std"]],
577+
"Variance": [std**2 for std in data["std"]],
578578
"Sum": [mean * npres for mean, npres in zip(data["mean"], data["npres"])],
579579
"Skewness": [float(skew) for skew in data["skew"]],
580580
"Kurtosis": [float(kurt) for kurt in data["kurt"]],

0 commit comments

Comments
 (0)