Skip to content
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 .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
default_stages: [commit, push, manual]
default_stages: [pre-commit, pre-push, manual]

repos:
- repo: https://github.com/commitizen-tools/commitizen
Expand Down
3 changes: 2 additions & 1 deletion src/ydata_profiling/model/correlations.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""Correlations between variables."""

import warnings
from typing import Dict, List, Optional, Sized
from typing import Dict, List, Optional, Sized, no_type_check

import numpy as np
import pandas as pd
Expand All @@ -19,6 +19,7 @@
class CorrelationBackend:
"""Helper class to select and cache the appropriate correlation backend (Pandas or Spark)."""

@no_type_check
def __init__(self, df: Sized):
"""Determine backend once and store it for all correlation computations."""
if isinstance(df, pd.DataFrame):
Expand Down