Skip to content

Commit

Permalink
fix(linting): code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
azory-ydata committed Apr 4, 2024
1 parent 2c616c6 commit 52ad5ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions src/ydata_profiling/model/pandas/describe_boolean_pandas.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Tuple

import pandas as pd
import numpy as np
import pandas as pd

from ydata_profiling.config import Settings
from ydata_profiling.model.pandas.imbalance_pandas import column_imbalance_score
Expand Down Expand Up @@ -32,10 +32,12 @@ def pandas_describe_boolean_1d(
summary.update({"top": value_counts.index[0], "freq": value_counts.iloc[0]})
summary["imbalance"] = column_imbalance_score(value_counts, len(value_counts))
else:
summary.update({
"top": np.nan,
"freq": 0,
"imbalance": 0,
})
summary.update(

Check warning on line 35 in src/ydata_profiling/model/pandas/describe_boolean_pandas.py

View check run for this annotation

Codecov / codecov/patch

src/ydata_profiling/model/pandas/describe_boolean_pandas.py#L35

Added line #L35 was not covered by tests
{
"top": np.nan,
"freq": 0,
"imbalance": 0,
}
)

return config, series, summary
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def render_date(config: Settings, summary: Dict[str, Any]) -> Dict[str, Any]:
)

# Bottom
n_bins = len(summary['histogram'][1]) - 1 if summary['histogram'] else 0
n_bins = len(summary["histogram"][1]) - 1 if summary["histogram"] else 0
bottom = Container(
[
Image(
Expand Down

0 comments on commit 52ad5ba

Please sign in to comment.