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 Dec 5, 2023
1 parent f466efa commit 7dcf497
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/ydata_profiling/model/pandas/describe_numeric_pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ def numeric_stats_numpy(
"skewness": series.skew(),
"sum": np.dot(index_values, vc.values),
}
else: # Empty numerical series
else: # Empty numerical series
return {
"mean": np.nan,
"std": 0.,
"variance": 0.,
"std": 0.0,
"variance": 0.0,
"min": np.nan,
"max": np.nan,
"kurtosis": 0.,
"skewness": 0.,
"kurtosis": 0.0,
"skewness": 0.0,
"sum": 0,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def render_real(config: Settings, summary: dict) -> dict:
[x[0] for x in summary.get("histogram", [])],
[x[1] for x in summary.get("histogram", [])],
)
bins = len(summary['histogram'][0][1]) - 1 if 'histogram' in summary else 0
bins = len(summary["histogram"][0][1]) - 1 if "histogram" in summary else 0
hist_caption = f"<strong>Histogram with fixed size bins</strong> (bins={bins})"
else:
hist_data = histogram(config, *summary["histogram"])
Expand Down

0 comments on commit 7dcf497

Please sign in to comment.