Missing values

plot_utils.missing_value_counts(X, fig=None, ax=None, figsize=None, dpi=100, rot=45)[source]

Visualize the number of missing values in each column of X.

Parameters:
  • X (pandas.DataFrame or pandas.Series) – Input data set whose every row is an observation and every column is a variable.

  • fig (matplotlib.figure.Figure or None) – Figure object. If None, a new figure will be created.

  • ax (matplotlib.axes._subplots.AxesSubplot or None) – Axes object. If None, a new axes will be created.

  • figsize ((float, float)) – Figure size in inches, as a tuple of two numbers. The figure size of fig (if not None) will override this parameter.

  • dpi (float) – Figure resolution. The dpi of fig (if not None) will override this parameter.

  • rot (float) – Rotation (in degrees) of the x axis labels.

Returns:

  • fig (matplotlib.figure.Figure) – The figure object being created or being passed into this function.

  • ax (matplotlib.axes._subplots.AxesSubplot) – The axes object being created or being passed into this function.

  • null_counts (pandas.Series) – A pandas Series whose every element is the number of missing values corresponding to each column of X.