@@ -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