Skip to content

Commit 045e07f

Browse files
v0.6.30
1 parent 713351b commit 045e07f

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77

88
[project]
99
name = "spotPython"
10-
version = "0.6.29"
10+
version = "0.6.30"
1111
authors = [
1212
{ name="T. Bartz-Beielstein", email="tbb@bartzundbartz.de" }
1313
]

src/spotPython/plot/validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def plot_roc_from_dataframes(
128128
alpha: float = 0.8,
129129
model_names: List[str] = None,
130130
target_column: str = None,
131-
show=True,
131+
show: bool = True,
132132
) -> None:
133133
"""
134134
Plot ROC curve for a list of dataframes from model evaluations.

src/spotPython/utils/eda.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def plot_sns_heatmap(
280280
fmt=".5f",
281281
linewidths=0.5,
282282
annot_kws={"size": 8},
283-
):
283+
) -> None:
284284
"""
285285
Plots a heatmap of the correlation matrix of the given DataFrame.
286286
@@ -296,7 +296,7 @@ def plot_sns_heatmap(
296296
annot_kws (dict): Keyword arguments for annotations.
297297
298298
Returns:
299-
None
299+
(NoneType): None
300300
301301
Example:
302302
>>> import pandas as pd
@@ -320,15 +320,15 @@ def plot_sns_heatmap(
320320
plt.gcf().clear()
321321

322322

323-
def count_missing_data(df):
323+
def count_missing_data(df) -> pd.DataFrame:
324324
"""
325325
Counts the number of missing values in each column of the given DataFrame.
326326
327327
Args:
328328
df (pd.DataFrame): DataFrame containing the data to be counted.
329329
330330
Returns:
331-
pd.DataFrame: DataFrame containing the number of missing values in each column.
331+
(pd.DataFrame): DataFrame containing the number of missing values in each column.
332332
333333
Example:
334334
>>> import pandas as pd
@@ -346,7 +346,9 @@ def count_missing_data(df):
346346
return missing_df
347347

348348

349-
def plot_missing_data(df, relative=False, figsize=(7, 5), color="grey", xlabel="Missing Data", title="Missing Data"):
349+
def plot_missing_data(
350+
df, relative=False, figsize=(7, 5), color="grey", xlabel="Missing Data", title="Missing Data"
351+
) -> None:
350352
"""
351353
Plots a horizontal bar chart of the number of missing values in each column of the given DataFrame.
352354
@@ -359,7 +361,7 @@ def plot_missing_data(df, relative=False, figsize=(7, 5), color="grey", xlabel="
359361
title (str): Title for the plot.
360362
361363
Returns:
362-
None
364+
(NoneType): None
363365
364366
Example:
365367
>>> import pandas as pd

0 commit comments

Comments
 (0)