overviewpy.overviewpy#

Module Contents#

Functions#

overview_tab(→ pandas.DataFrame)

Generates a tabular overview of the sample (and returns a data frame).

overview_na(→ matplotlib.figure.Figure)

Plots an overview of missing values by variable.

overviewpy.overviewpy.overview_tab(df: pandas.DataFrame, id: str, time: str) pandas.DataFrame[source]#

Generates a tabular overview of the sample (and returns a data frame). The general sample plots a two-column table that provides information on an id in the left column and a the time frame on the right column.

Parameters:
  • df (pd.DataFrame) – Input data frame

  • id (str) – Identifies the id column (for instance, country)

  • time (str) – Identifies the time column (for instance, years)

Returns:

Returns a reduced data frame that shows a cohesive overview of the data frame

Return type:

pd.DataFrame

overviewpy.overviewpy.overview_na(df: pandas.DataFrame) matplotlib.figure.Figure[source]#

Plots an overview of missing values by variable.

Parameters:

df (pd.DataFrame) – Input data frame

Returns:

Bar plot visualizing the number of missing values per variable

Return type:

matplotlib.figure.Figure