Skip to content

Commit

Permalink
fix: issue#915 lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohaib90 committed Jan 24, 2023
1 parent 56e102a commit 21d8042
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pandas_profiling/model/summary_algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def chi_square(
values: Optional[np.ndarray] = None, histogram: Optional[np.ndarray] = None
) -> dict:
if histogram is None:
bins = bins = np.histogram_bin_edges(values, bins='auto')
bins = bins = np.histogram_bin_edges(values, bins="auto")
histogram, _ = np.histogram(values, bins=bins)
return dict(chisquare(histogram)._asdict())

Expand Down
5 changes: 4 additions & 1 deletion tests/issues/test_issue915.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
Error for series with large integers.
"""
import fnmatch

import pandas as pd

from pandas_profiling import ProfileReport


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

test_with_value(5)
test_with_value(100)
test_with_value(120)
test_with_value(120)

0 comments on commit 21d8042

Please sign in to comment.