Skip to content

fix(eda): scipy version issue #870

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
poetry run pyright --version

- name: Check if the code is formatted
run: poetry run black --check --quiet dataprep
run: poetry run black --check dataprep

- name: Type check the project
run: poetry run pyright dataprep || true
Expand Down
4 changes: 2 additions & 2 deletions dataprep/clean/clean_country.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def _format_country(
return result, 2 if val != result else 3


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


@lru_cache(maxsize=2 ** 20)
@lru_cache(maxsize=2**20)
def _check_fuzzy_dist(country: str, fuzzy_dist: int) -> Any:
"""
A match is found if a country has an edit distance <= fuzzy_dist
Expand Down
2 changes: 1 addition & 1 deletion dataprep/eda/diff/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ def format_num_stats(data: Dict[str, List[Any]]) -> Dict[str, Dict[str, List[Any
descriptive = {
"Mean": data["mean"],
"Standard Deviation": data["std"],
"Variance": [std ** 2 for std in data["std"]],
"Variance": [std**2 for std in data["std"]],
"Sum": [mean * npres for mean, npres in zip(data["mean"], data["npres"])],
"Skewness": [float(skew) for skew in data["skew"]],
"Kurtosis": [float(kurt) for kurt in data["kurt"]],
Expand Down
Loading