Reference¶
overview_na(df)
¶
Plots an overview of missing values by variable.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
df |
DataFrame
|
Input data frame |
required |
Returns:
Type | Description |
---|---|
Figure
|
matplotlib.figure.Figure: Bar plot visualizing the number of missing values per variable |
Source code in overviewpy/overviewpy.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|
overview_tab(df, id, time)
¶
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:
Name | Type | Description | Default |
---|---|---|---|
df |
DataFrame
|
Input data frame |
required |
id |
str
|
Identifies the id column (for instance, country) |
required |
time |
int
|
Identifies the time column (for instance, years). This argument can currently handle simple digits (YYYY or YY, for instance). More complex dates (YYYY-MM-DD, for instance) is planned as a future feature. |
required |
Returns:
Type | Description |
---|---|
DataFrame
|
pd.DataFrame: Returns a reduced data frame that shows a cohesive |
DataFrame
|
overview of the data frame |
Source code in overviewpy/overviewpy.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
|