Skip to content

Commit 21d8042

Browse files
committed
fix: issue#915 lint issues
1 parent 56e102a commit 21d8042

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/pandas_profiling/model/summary_algorithms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def chi_square(
5151
values: Optional[np.ndarray] = None, histogram: Optional[np.ndarray] = None
5252
) -> dict:
5353
if histogram is None:
54-
bins = bins = np.histogram_bin_edges(values, bins='auto')
54+
bins = bins = np.histogram_bin_edges(values, bins="auto")
5555
histogram, _ = np.histogram(values, bins=bins)
5656
return dict(chisquare(histogram)._asdict())
5757

tests/issues/test_issue915.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
Error for series with large integers.
66
"""
77
import fnmatch
8+
89
import pandas as pd
10+
911
from pandas_profiling import ProfileReport
1012

13+
1114
def test_issue915():
1215
df = pd.DataFrame({"col": pd.Series([716277643516076032 + i for i in range(100)])})
1316
df_profile = ProfileReport(df)
@@ -27,4 +30,4 @@ def test_with_value(n_extreme_obs):
2730

2831
test_with_value(5)
2932
test_with_value(100)
30-
test_with_value(120)
33+
test_with_value(120)

0 commit comments

Comments
 (0)